Class: Twilio::REST::Voice::V2::RecordingList::VoiceV2ConfigurationRecordingFeature

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) ⇒ VoiceV2ConfigurationRecordingFeature

Returns a new instance of VoiceV2ConfigurationRecordingFeature.



46
47
48
49
50
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 46

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

Instance Attribute Details

#description ⇒ Object

Parameters:

  • : (type) —

    [String] The type of feature.

  • : (feature_id) —

    [String] The ID of the feature.

  • : (description) —

    [String] The description of the feature.



45
46
47
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 45

def description
  @description
end

#feature_id ⇒ Object

Parameters:

  • : (type) —

    [String] The type of feature.

  • : (feature_id) —

    [String] The ID of the feature.

  • : (description) —

    [String] The description of the feature.



45
46
47
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 45

def feature_id
  @feature_id
end

#type ⇒ Object

Parameters:

  • : (type) —

    [String] The type of feature.

  • : (feature_id) —

    [String] The ID of the feature.

  • : (description) —

    [String] The description of the feature.



45
46
47
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 45

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



51
52
53
54
55
56
57
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 51

def to_json(options = {})
{
        "type": @type,
        "featureId": @feature_id,
        "description": @description,
}.to_json(options)
end