Class: Grobi::Place
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#reference ⇒ Object
Returns the value of attribute reference.
Attributes inherited from Placemark
#city, #country, #establishment, #formatted_address, #latitude, #locality, #longitude, #number, #postal_code, #route
Instance Method Summary collapse
-
#initialize(json) ⇒ Place
constructor
A new instance of Place.
- #update(json) ⇒ Object
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
#name ⇒ Object
Returns the value of attribute name.
70 71 72 |
# File 'lib/grobi/places.rb', line 70 def name @name end |
#reference ⇒ Object
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 |