lib/picasa/client.rb in picasa-0.4.2 vs lib/picasa/client.rb in picasa-0.5.0
- old
+ new
@@ -19,9 +19,20 @@
# # => "My album"
def album
API::Album.new(credentials)
end
+ # @return [API::Photo]
+ #
+ # @example
+ # client = Picasa::Client.new(user_id: "my.email@google.com", password: "secret")
+ # photo = client.photo.create("album-id", title: "My picture", binary: "image-binary-data", content_type: "image/jpeg")
+ # photo.id
+ # # => "4322232322421"
+ def photo
+ API::Photo.new(credentials)
+ end
+
# @return [API::Tag]
#
# @example
# client = Picasa::Client.new(user_id: "my.email@google.com")
# tag_list = client.tag.list(album_id: "988", photo_id: "123")