Class: Twilio::REST::Voice::V2::RecordingList::VoiceV2ConfigurationRecordingCompositionPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ VoiceV2ConfigurationRecordingCompositionPolicy

Returns a new instance of VoiceV2ConfigurationRecordingCompositionPolicy.



27
28
29
30
31
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 27

def initialize(payload)
        @channels = payload["channels"]
        @trim = payload["trim"]
        @track = payload["track"]
end

Instance Attribute Details

#channels ⇒ Object

Parameters:

  • : (channels) —

    [String] The number of channels to be composed.

  • : (trim) —

    [String] Trim the silence in the recordings.

  • : (track) —

    [String] The audio track to record for the call.



26
27
28
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 26

def channels
  @channels
end

#track ⇒ Object

Parameters:

  • : (channels) —

    [String] The number of channels to be composed.

  • : (trim) —

    [String] Trim the silence in the recordings.

  • : (track) —

    [String] The audio track to record for the call.



26
27
28
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 26

def track
  @track
end

#trim ⇒ Object

Parameters:

  • : (channels) —

    [String] The number of channels to be composed.

  • : (trim) —

    [String] Trim the silence in the recordings.

  • : (track) —

    [String] The audio track to record for the call.



26
27
28
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 26

def trim
  @trim
end

Instance Method Details

#to_json(options = {}) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 32

def to_json(options = {})
{
        "channels": @channels,
        "trim": @trim,
        "track": @track,
}.to_json(options)
end