Module: GSGraph::Connections::Messages
- Included in:
- Thread
- Defined in:
- lib/gs_graph/connections/messages.rb
Instance Method Summary collapse
Instance Method Details
#message!(message, options = {}) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/gs_graph/connections/messages.rb', line 13 def (, = {}) [:message] = = post .merge(:connection => :messages) Message.new [:id], .merge().merge( :access_token => [:access_token] || self.access_token ) end |
#messages(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gs_graph/connections/messages.rb', line 4 def ( = {}) = self.connection :messages, .map! do || Message.new [:id], .merge( :access_token => [:access_token] || self.access_token ) end end |