Class: Grobi::Place

Inherits:
Placemark show all
Defined in:
lib/grobi/places.rb

Instance Attribute Summary collapse

Attributes inherited from Placemark

#city, #country, #establishment, #formatted_address, #latitude, #locality, #longitude, #number, #postal_code, #route

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Place

Returns a new instance of Place.



71
72
73
# File 'lib/grobi/places.rb', line 71

def initialize(json)
  super
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



70
71
72
# File 'lib/grobi/places.rb', line 70

def name
  @name
end

#referenceObject

Returns the value of attribute reference.



70
71
72
# File 'lib/grobi/places.rb', line 70

def reference
  @reference
end

Instance Method Details

#update(json) ⇒ Object



75
76
77
78
79
# File 'lib/grobi/places.rb', line 75

def update(json)
  super
  @name = json['name']
  @reference = json['reference']
end