Class: Lonelyplanet::Geotaxonomy::Parent
- Inherits:
-
Object
- Object
- Lonelyplanet::Geotaxonomy::Parent
- Defined in:
- lib/lonely_planet.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tid ⇒ Object
readonly
Returns the value of attribute tid.
Instance Method Summary collapse
-
#initialize(payload) ⇒ Parent
constructor
A new instance of Parent.
Constructor Details
#initialize(payload) ⇒ Parent
Returns a new instance of Parent.
183 184 185 186 |
# File 'lib/lonely_planet.rb', line 183 def initialize(payload) @name = payload['name'].to_s @tid = payload['tid'].to_s end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
181 182 183 |
# File 'lib/lonely_planet.rb', line 181 def name @name end |
#tid ⇒ Object (readonly)
Returns the value of attribute tid.
182 183 184 |
# File 'lib/lonely_planet.rb', line 182 def tid @tid end |