Module: FbGraph::Connections::Docs

Included in:
Group
Defined in:
lib/fb_graph/connections/docs.rb

Instance Method Summary collapse

Instance Method Details

#docs(options = {}) ⇒ Object


4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/docs.rb', line 4

def docs(options = {})
  docs = self.connection :docs, options
  docs.map! do |doc|
    Doc.new doc[:id], doc.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end