Module: Picasa

Defined in:
lib/picasa.rb,
lib/picasa/web_albums.rb

Defined Under Namespace

Classes: WebAlbums

Class Method Summary collapse

Class Method Details

.albums(options = {}) ⇒ Object

Raises:

  • (ArgumentError)


6
7
8
9
10
# File 'lib/picasa.rb', line 6

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

.photos(options = {}) ⇒ Object

Raises:

  • (ArgumentError)


12
13
14
15
16
17
# File 'lib/picasa.rb', line 12

def self.photos(options = {})
  raise ArgumentError.new("You must specify google_user") unless options[:google_user]
  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