Class: Twilio::REST::Voice::V2::RecordingList::VoiceV2ConfigurationRecordingFeature
- Inherits:
-
Object
- Object
- Twilio::REST::Voice::V2::RecordingList::VoiceV2ConfigurationRecordingFeature
- Defined in:
- lib/twilio-ruby/rest/voice/v2/recording.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ VoiceV2ConfigurationRecordingFeature
constructor
A new instance of VoiceV2ConfigurationRecordingFeature.
- #to_json(options = {}) ⇒ Object
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
45 46 47 |
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 45 def description @description end |
#feature_id ⇒ Object
45 46 47 |
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 45 def feature_id @feature_id end |
#type ⇒ Object
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( = {}) { "type": @type, "featureId": @feature_id, "description": @description, }.to_json() end |