Sha256: 4a30f19d9134104fa852f331c70e16819105d536af19707691131d0f07dfaaee

Contents?: true

Size: 434 Bytes

Versions: 8

Compression:

Stored size: 434 Bytes

Contents

module FbGraph2
  class Edge
    module Albums
      def albums(params = {})
        albums = self.edge :albums, params
        albums.collect do |album|
          Album.new(album[:id], album).authenticate self.access_token
        end
      end

      def album!(params = {})
        album = self.post params, edge: :albums
        Album.new(album[:id], params.merge(album)).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/albums.rb
fb_graph2-0.0.11 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.10 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.9 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.8 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.7 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.6 lib/fb_graph2/edge/albums.rb
fb_graph2-0.0.5 lib/fb_graph2/edge/albums.rb