class JustimmoClient::V1::GeoLocation
Public Instance Methods
country()
click to toggle source
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 26 def country @country&.alpha3 end
country=(code)
click to toggle source
@!group Instance Method Summary
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 22 def country=(code) @country = Country.new(alpha3: code) end
floor=(flr)
click to toggle source
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 30 def floor=(flr) @floor = flr.to_i end
inspect()
click to toggle source
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 38 def inspect "#<#{self.class} #{self}>" end
to_a()
click to toggle source
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 42 def to_a [latitude, longitude] end
to_s()
click to toggle source
# File lib/justimmo_client/api/v1/models/geo_location.rb, line 34 def to_s ["#{zip_code} #{location}", federal_state, country].compact.join(", ") end