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
6 7 8 9 10 |
# File 'lib/picasa.rb', line 6 def self.albums( = {}) raise ArgumentError.new("You must specify google_user") unless [:google_user] web_albums = Picasa::WebAlbums.new([:google_user]) web_albums.albums end |
.photos(options = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/picasa.rb', line 12 def self.photos( = {}) raise ArgumentError.new("You must specify google_user") unless [:google_user] raise ArgumentError.new("You must specify album_id") unless [:album_id] web_albums = Picasa::WebAlbums.new([:google_user]) web_albums.photos([:album_id]) end |