Class: Justimmo::API::RealtyGeo

Inherits:
Resource
  • Object
show all
Defined in:
lib/justimmo/api/v1/realty/realty_geo.rb

Overview

Holds geographic information.

Instance Method Summary collapse

Methods inherited from Resource

class_name, from_json, mapper, query, #to_h, #to_json

Constructor Details

#initialize(options = {}) ⇒ RealtyGeo


8
9
10
11
12
13
14
15
16
17
# File 'lib/justimmo/api/v1/realty/realty_geo.rb', line 8

def initialize(options = {})
  @attributes = %i[
    zip_code location country federal_state latitude longitude
  ]

  coordinates(options) if options.key?(:user_defined_simplefield)
  iso_country(options)

  super(options)
end