Permalink
Browse files

added id attribute to photo

  • Loading branch information...
1 parent 55a930e commit 9b7c963b2ffdfc8cfa13774d4247ec2b185931ff @morgoth committed Feb 2, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/picasa/web_albums.rb
  2. +1 −0 test/test_web_albums.rb
View
@@ -32,6 +32,7 @@ def photos(album_id)
photos = []
xml["entry"].each do |photo|
attributes = {}
+ attributes[:id] = photo["id"][1]
attributes[:title] = photo["group"][0]["description"][0]["content"]
attributes[:thumbnail_1] = photo["group"][0]["thumbnail"][0]["url"]
attributes[:thumbnail_2] = photo["group"][0]["thumbnail"][1]["url"]
View
@@ -22,6 +22,7 @@
photos = Picasa.photos(:google_user => "some.user", :album_id => "666")
assert_equal 10, photos[:photos].count
refute_nil photos[:slideshow]
+ refute_nil photos[:photos].first[:id]
refute_nil photos[:photos].first[:thumbnail_1]
refute_nil photos[:photos].first[:thumbnail_2]
refute_nil photos[:photos].first[:thumbnail_3]

0 comments on commit 9b7c963

Please sign in to comment.