Class: FlickrawObjects::Photoset
- Inherits:
-
Object
- Object
- FlickrawObjects::Photoset
- Includes:
- Attributes
- Defined in:
- lib/flickraw_objects.rb
Constant Summary
Constants included from Attributes
Instance Attribute Summary
Attributes included from Attributes
Instance Method Summary collapse
- #get_info ⇒ Object
- #get_photos(params = {}) ⇒ Object (also: #photos)
Methods included from Attributes
Instance Method Details
#get_info ⇒ Object
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 |