Class: Kuva::Elements::PhotosetCollection
- Inherits:
-
Object
- Object
- Kuva::Elements::PhotosetCollection
- Defined in:
- lib/kuva/elements/photoset_collection.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.retrieve ⇒ Object
5 6 7 |
# File 'lib/kuva/elements/photoset_collection.rb', line 5 def self.retrieve new.photosets end |
Instance Method Details
#photosets ⇒ Object
9 10 11 12 13 |
# File 'lib/kuva/elements/photoset_collection.rb', line 9 def photosets @photosets ||= cached.each_with_object([]) do |photoset, collection| collection << Kuva::Elements::Photoset.find(photoset.id) end end |