Sha256: b76b4d6b9f50893612b6c4cb9e7f345296c14b17c36f90b94c97660aeb7e8741

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

module FbGraph2
  class Edge
    module Photos
      def photos(*args)
        params = args.extract_options!
        photos = self.edge :photos, params, edge_scope: args.first
        photos.collect do |photo|
          Photo.new(photo[:id], photo).authenticate self.access_token
        end
      end

      def photo!(params = {})
        photo = post params, edge: :photos
        Photo.new(photo[:id], params.merge(photo)).authenticate self.access_token
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fb_graph2-0.0.4 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.3 lib/fb_graph2/edge/photos.rb