Class: Lonelyplanet::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Image

Returns a new instance of Image.



272
273
274
275
276
277
# File 'lib/lonely_planet.rb', line 272

def initialize(payload)
  @title = payload['title'].to_s
  @thumbnail = payload['thumbnail'].to_s
  @filepath = payload['filepath'].to_s
  @node_id = payload['node_id'].to_s
end

Instance Attribute Details

#filepathObject (readonly)

Returns the value of attribute filepath.



269
270
271
# File 'lib/lonely_planet.rb', line 269

def filepath
  @filepath
end

#node_idObject (readonly)

Returns the value of attribute node_id.



270
271
272
# File 'lib/lonely_planet.rb', line 270

def node_id
  @node_id
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



268
269
270
# File 'lib/lonely_planet.rb', line 268

def thumbnail
  @thumbnail
end

#titleObject (readonly)

Returns the value of attribute title.



267
268
269
# File 'lib/lonely_planet.rb', line 267

def title
  @title
end