Method: Databasedotcom::Chatter::Conversation#initialize
- Defined in:
- lib/databasedotcom/chatter/conversation.rb
#initialize(client, response) ⇒ Conversation
Creates a new Conversation and sets its id and url to values obtained from the server response.
12 13 14 15 16 |
# File 'lib/databasedotcom/chatter/conversation.rb', line 12 def initialize(client, response) super @id ||= @raw_hash["conversationId"] @url ||= @raw_hash["conversationUrl"] end |