Module: FbGraph::Connections::Notes
Instance Method Summary collapse
Instance Method Details
#note!(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/fb_graph/connections/notes.rb', line 11 def note!( = {}) note = post(.merge(:connection => 'notes')) Note.new(note.delete(:id), .merge(note)) end |
#notes(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph/connections/notes.rb', line 4 def notes( = {}) notes = FbGraph::Collection.new(get(.merge(:connection => 'notes'))) notes.map! do |note| Note.new(note.delete(:id), note) end end |