Sha256: 33dc4c2edc6dca8d1946256096668b5d02f9751551ae6e604be6246e3a68de34

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

module FbGraph
  module Connections
    module Photos
      def photos(options = {})
        photos = FbGraph::Collection.new(get(options.merge(:connection => 'photos')))
        photos.map! do |photo|
          Photo.new(photo.delete(:id), photo)
        end
      end

      def photo!(options = {})
        photo = post(options.merge(:connection => 'photos'))
        Photo.new(photo.delete(:id), options.merge(photo))
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/photos.rb
fb_graph-0.2.1 lib/fb_graph/connections/photos.rb
fb_graph-0.2.0 lib/fb_graph/connections/photos.rb
fb_graph-0.1.3 lib/fb_graph/connections/photos.rb
fb_graph-0.1.2 lib/fb_graph/connections/photos.rb
fb_graph-0.1.1 lib/fb_graph/connections/photos.rb
fb_graph-0.1.0 lib/fb_graph/connections/photos.rb
fb_graph-0.0.8 lib/fb_graph/connections/photos.rb
fb_graph-0.0.7 lib/fb_graph/connections/photos.rb