Class: VoiceML::ConversationsV1ServiceConversationMessage
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceConversationMessage
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceConversationMessage — IM..., scoped to a Service.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid chat_service_sid conversation_sid sid index author body media attributes participant_sid date_created date_updated url delivery links content_sid ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConversationMessage
constructor
A new instance of ConversationsV1ServiceConversationMessage.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConversationMessage
Returns a new instance of ConversationsV1ServiceConversationMessage.
359 360 361 |
# File 'lib/voiceml/models/conversations_v1.rb', line 359 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
362 |
# File 'lib/voiceml/models/conversations_v1.rb', line 362 def self.from_hash(h); h.nil? ? nil : new(h); end |