Sha256: bb88132251a2e3f209a138f2cef2d71ca91a596597e50b1a67bdf5067c873109

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

module FbGraph
  module Connections
    module Books
      def books(options = {})
        books = FbGraph::Collection.new(get(options.merge(:connection => 'books')))
        books.map! do |book|
          Page.new(book.delete(:id), book.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.4.2 lib/fb_graph/connections/books.rb
fb_graph-0.4.1 lib/fb_graph/connections/books.rb
fb_graph-0.4.0 lib/fb_graph/connections/books.rb
fb_graph-0.3.0 lib/fb_graph/connections/books.rb