Class: VoiceML::ConversationsV1ServiceConversationWithParticipants

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

Overview

ConversationsV1ServiceConversationWithParticipants — service-scoped single-call conv + participants; field-identical to ServiceConversation.

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 = {}) ⇒ ConversationsV1ServiceConversationWithParticipants

Returns a new instance of ConversationsV1ServiceConversationWithParticipants.



450
451
452
# File 'lib/voiceml/models/conversations_v1.rb', line 450

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

Class Method Details

.from_hash(h) ⇒ Object



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

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