module TagsRepository

Public Instance Methods

get_all_tags() click to toggle source
# File lib/repositories/tags_repository.rb, line 4
def get_all_tags
  xml = get_xml("http://picasaweb.google.com/data/feed/api/user/#{@email}?kind=tag")
  tags = []
  xml.root.elements.each("//entry") do |entry|
    tag = PicasaWebAlbums::Tag.new
    tag.text = entry.elements["title"].text
    tags << tag
  end
  tags
end
get_tags_by_album_id(album_id) click to toggle source
# File lib/repositories/tags_repository.rb, line 15
def get_tags_by_album_id(album_id)
  get_xml("http://picasaweb.google.com/data/feed/api/user/userID/albumid/#{album_id}?kind=tag")
end
get_tags_by_album_id_and_photo_id(album_id, photo_id) click to toggle source
# File lib/repositories/tags_repository.rb, line 19
def get_tags_by_album_id_and_photo_id(album_id, photo_id)
  get_xml("http://picasaweb.google.com/data/feed/api/user/default/albumid/#{album_id}/photoid/#{photo_id}?kind=tag")
end