Class: Smirk::Album
Constant Summary
Constants inherited from Client
Instance Method Summary collapse
- #images(heavy = false) ⇒ Object
-
#initialize(info) ⇒ Album
constructor
A new instance of Album.
Methods inherited from Client
#albums, #categories, #find_album, #find_image, #find_image_exif, #logout
Constructor Details
Instance Method Details
#images(heavy = false) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/smirk/album.rb', line 13 def images(heavy = false) params = default_params.merge!({:method => "smugmug.images.get", :AlbumID => id, :AlbumKey => key, :Heavy => heavy}) json = get(params)["Album"]["Images"] json.inject([]) do |images, i| images << Smirk::Image.new(upper_hash_to_lower_hash(i)) end end |