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[: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 = self.connection :notes, notes.map! do |note| Note.new note[:id], note.merge( :access_token => [:access_token] || self.access_token ) end end |