Module: FbGraph::Connections::Albums
Instance Method Summary collapse
Instance Method Details
#album!(options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fb_graph/connections/albums.rb', line 13 def album!( = {}) album = post .merge(:connection => :albums) Album.new album[:id], .merge(album).merge( :access_token => [:access_token] || self.access_token ) end |
#albums(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fb_graph/connections/albums.rb', line 4 def albums( = {}) albums = self.connection :albums, albums.map! do |album| Album.new album[:id], album.merge( :access_token => [:access_token] || self.access_token ) end end |