lib/picasa/client.rb in picasa-0.5.2 vs lib/picasa/client.rb in picasa-0.5.3

- old
+ new

@@ -46,9 +46,21 @@ def tag authenticate if authenticates? API::Tag.new(credentials) end + # @return [API::Comment] + # + # @example + # client = Picasa::Client.new(user_id: "my.email@google.com") + # comment_list = client.comment.list(album_id: "988", photo_id: "123") + # comment_list.entries.map &:content + # # => "nice photo!" + def comment + authenticate if authenticates? + API::Comment.new(credentials) + end + # @return [String] def authenticate response = Connection.new.post( :host => API_AUTH_URL, :headers => {"Content-Type" => "application/x-www-form-urlencoded"},