Class: VoiceML::ConversationsV1ConversationWithParticipants

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/models/conversations_v1.rb

Overview

ConversationsV1ConversationWithParticipants — single-call conversation + initial participants. Returned by POST /v1/ConversationWithParticipants; field-identical to ConversationsV1Conversation.

Constant Summary collapse

ATTRIBUTES =
%w[
  account_sid chat_service_sid messaging_service_sid sid friendly_name
  unique_name attributes state date_created date_updated timers links bindings url
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1ConversationWithParticipants

Returns a new instance of ConversationsV1ConversationWithParticipants.



272
273
274
# File 'lib/voiceml/models/conversations_v1.rb', line 272

def initialize(attrs = {})
  ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) }
end

Class Method Details

.from_hash(h) ⇒ Object



275
# File 'lib/voiceml/models/conversations_v1.rb', line 275

def self.from_hash(h); h.nil? ? nil : new(h); end