Class: Twilio::REST::Voice::V3::TranscriptionList::VoiceV3TranscriptionResolvedConfigurationParticipantDefaults

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/voice/v3/transcription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ VoiceV3TranscriptionResolvedConfigurationParticipantDefaults

Returns a new instance of VoiceV3TranscriptionResolvedConfigurationParticipantDefaults.



54
55
56
57
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 54

def initialize(payload)
        @audio_channel_index = payload["audio_channel_index"]
        @type = payload["type"]
end

Instance Attribute Details

#audio_channel_index ⇒ Object

Parameters:

  • : (audio_channel_index) —

    [Integer] One-based index of the audio channel

  • : (type) —

    [String] The participant role type



53
54
55
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 53

def audio_channel_index
  @audio_channel_index
end

#type ⇒ Object

Parameters:

  • : (audio_channel_index) —

    [Integer] One-based index of the audio channel

  • : (type) —

    [String] The participant role type



53
54
55
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 53

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



58
59
60
61
62
63
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 58

def to_json(options = {})
{
        "audioChannelIndex": @audio_channel_index,
        "type": @type,
}.to_json(options)
end