Module: FbGraph::Connections::Notes

Included in:
Page, User
Defined in:
lib/fb_graph/connections/notes.rb

Instance Method Summary collapse

Instance Method Details

#notes(options = {}) ⇒ Object



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

def notes(options = {})
  notes = FbGraph::Collection.new(get(options.merge(:connection => 'notes')))
  notes.map! do |note|
    Note.new(note.delete(:id), note)
  end
end