Method: Databasedotcom::Chatter::Conversation#messages
- Defined in:
- lib/databasedotcom/chatter/conversation.rb
#messages ⇒ Object
Return a Collection of messages from this Conversation.
85 86 87 88 89 90 91 |
# File 'lib/databasedotcom/chatter/conversation.rb', line 85 def collection = Databasedotcom::Collection.new(client, nil, self.raw_hash["messages"]["nextPageUrl"], self.raw_hash["messages"]["previousPageUrl"], self.raw_hash["messages"]["currentPageUrl"]) self.raw_hash["messages"]["messages"].each do |item| collection << Message.new(client, item) end collection end |