Class: VoiceML::ConversationsV1ConversationParticipant
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationParticipant
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ConversationParticipant — MB....
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid conversation_sid sid identity attributes messaging_binding role_sid date_created date_updated url last_read_message_index last_read_timestamp ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ConversationParticipant
constructor
A new instance of ConversationsV1ConversationParticipant.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ConversationParticipant
Returns a new instance of ConversationsV1ConversationParticipant.
69 70 71 |
# File 'lib/voiceml/models/conversations_v1.rb', line 69 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
72 |
# File 'lib/voiceml/models/conversations_v1.rb', line 72 def self.from_hash(h); h.nil? ? nil : new(h); end |