Sha256: 073c77cdd9580a1ea6ee353943f6898046c15cac2f54cd5affa37c2573eeb60a

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'net/http'
require 'xmlsimple'
require 'picasa/web_albums'
require 'picasa/config'

module Picasa
  def self.albums(options = {})
    web_albums = Picasa::WebAlbums.new(options[:google_user])
    web_albums.albums
  end

  def self.photos(options = {})
    raise ArgumentError.new("You must specify album_id") unless options[:album_id]
    web_albums = Picasa::WebAlbums.new(options[:google_user])
    web_albums.photos(options[:album_id])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
picasa-0.2.2 lib/picasa.rb
picasa-0.2.1 lib/picasa.rb
picasa-0.2.0 lib/picasa.rb
picasa-0.1.9 lib/picasa.rb