Module: FbGraph::Connections::Notes
Instance Method Summary collapse
Instance Method Details
#note!(options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fb_graph/connections/notes.rb', line 13 def note!( = {}) note = post(.merge(:connection => 'notes')) Note.new(note.delete(:id), .merge(note).merge( :access_token => [:access_token] || self.access_token )) end |
#notes(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# 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.merge( :access_token => [:access_token] || self.access_token )) end end |