Class: FlickrawObjects::Photoset

Inherits:
Object
  • Object
show all
Includes:
Attributes
Defined in:
lib/flickraw_objects.rb

Constant Summary

Constants included from Attributes

Attributes::COERCIONS

Instance Attribute Summary

Attributes included from Attributes

#init

Instance Method Summary collapse

Methods included from Attributes

included, #initialize

Instance Method Details

#get_infoObject



67
68
69
# File 'lib/flickraw_objects.rb', line 67

def get_info
  @get_info ||= flickr.photosets.getInfo photoset_id: id
end

#get_photos(params = {}) ⇒ Object Also known as: photos



56
57
58
59
60
61
62
63
# File 'lib/flickraw_objects.rb', line 56

def get_photos(params = {})
  result = Array.new
  response = flickr.photosets.getPhotos(photoset_id: id)
  response["photo"].each do |photo|
    result << Photo.new(photo)
  end
  result
end