Module: FbGraph::Connections::Photos
Instance Method Summary collapse
Instance Method Details
#photo!(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/fb_graph/connections/photos.rb', line 11 def photo!( = {}) photo = post(.merge(:connection => 'photos')) Photo.new(photo.delete(:id), .merge(photo)) end |
#photos(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph/connections/photos.rb', line 4 def photos( = {}) photos = FbGraph::Collection.new(get(.merge(:connection => 'photos'))) photos.map! do |photo| Photo.new(photo.delete(:id), photo) end end |