Class: Lonelyplanet::Geotaxonomy::Parent

Inherits:
Object
  • Object
show all
Defined in:
lib/lonely_planet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



181
182
183
# File 'lib/lonely_planet.rb', line 181

def name
  @name
end

#tidObject (readonly)

Returns the value of attribute tid.



182
183
184
# File 'lib/lonely_planet.rb', line 182

def tid
  @tid
end