Class: VoiceML::ConversationsV1ConversationMessage
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationMessage
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ConversationMessage — IM....
Constant Summary collapse
- ATTRIBUTES =
%w[ account_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 = {}) ⇒ ConversationsV1ConversationMessage
constructor
A new instance of ConversationsV1ConversationMessage.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ConversationMessage
Returns a new instance of ConversationsV1ConversationMessage.
47 48 49 |
# File 'lib/voiceml/models/conversations_v1.rb', line 47 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
50 |
# File 'lib/voiceml/models/conversations_v1.rb', line 50 def self.from_hash(h); h.nil? ? nil : new(h); end |