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.



104
105
106
107
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 104

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

Instance Attribute Details

#audio_channel_indexObject

Parameters:

  • : (audio_channel_index)
    Integer

    One-based index of the audio channel

  • : (type)
    String

    The participant role type



103
104
105
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 103

def audio_channel_index
  @audio_channel_index
end

#typeObject

Parameters:

  • : (audio_channel_index)
    Integer

    One-based index of the audio channel

  • : (type)
    String

    The participant role type



103
104
105
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 103

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



108
109
110
111
112
113
# File 'lib/twilio-ruby/rest/voice/v3/transcription.rb', line 108

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