Sha256: 24f13a60765a36ec6c7d5bce25fc06abe588c9b94df76e27a2990a2a594b35a1

Contents?: true

Size: 491 Bytes

Versions: 8

Compression:

Stored size: 491 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 = self.post params, edge: :photos
        Photo.new(photo[:id], params.merge(photo)).authenticate self.access_token
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.11 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.10 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.9 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.8 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.7 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.6 lib/fb_graph2/edge/photos.rb
fb_graph2-0.0.5 lib/fb_graph2/edge/photos.rb