From f959b7529b574e102d2461bdd429ab3343521978 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Fri, 5 Apr 2024 13:46:34 +0300 Subject: [PATCH] change json properties to read-only --- src/ipapi.cr | 60 ++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/ipapi.cr b/src/ipapi.cr index 2e8a800..3d800da 100644 --- a/src/ipapi.cr +++ b/src/ipapi.cr @@ -122,40 +122,40 @@ module Ipapi class Location include JSON::Serializable - property ip : String - property network : String - property version : String - property city : String - property region : String - property region_code : String - property country : String - property country_name : String - property country_code : String - property country_code_iso3 : String - property country_capital : String - property country_tld : String - property continent_code : String - property in_eu : Bool - property postal : String - property latitude : Float64 - property longitude : Float64 - property timezone : String - property utc_offset : String - property country_calling_code : String - property currency : String - property currency_name : String - property languages : String - property country_area : Float64 - property country_population : Int32 - property asn : String - property org : String + getter ip : String + getter network : String + getter version : String + getter city : String + getter region : String + getter region_code : String + getter country : String + getter country_name : String + getter country_code : String + getter country_code_iso3 : String + getter country_capital : String + getter country_tld : String + getter continent_code : String + getter in_eu : Bool + getter postal : String + getter latitude : Float64 + getter longitude : Float64 + getter timezone : String + getter utc_offset : String + getter country_calling_code : String + getter currency : String + getter currency_name : String + getter languages : String + getter country_area : Float64 + getter country_population : Int32 + getter asn : String + getter org : String end class ErrorResponse include JSON::Serializable - property ip : String - property error : Bool - property reason : String + getter ip : String + getter error : Bool + getter reason : String end end