Class: Twilio::REST::Voice::V2::RecordingList::VoiceV2ConfigurationRecordingStatusCallback

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

Returns a new instance of VoiceV2ConfigurationRecordingStatusCallback.



84
85
86
87
88
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 84

def initialize(payload)
        @url = payload["url"]
        @method = payload["method"]
        @events = payload["events"]
end

Instance Attribute Details

#events ⇒ Object

Parameters:

  • : (url) —

    [String] The recording status callback URL.

  • : (method) —

    [String] The recording status callback method.

  • : (events) —

    [Array] The recording status callback events.



83
84
85
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 83

def events
  @events
end

#method ⇒ Object

Parameters:

  • : (url) —

    [String] The recording status callback URL.

  • : (method) —

    [String] The recording status callback method.

  • : (events) —

    [Array] The recording status callback events.



83
84
85
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 83

def method
  @method
end

#url ⇒ Object

Parameters:

  • : (url) —

    [String] The recording status callback URL.

  • : (method) —

    [String] The recording status callback method.

  • : (events) —

    [Array] The recording status callback events.



83
84
85
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 83

def url
  @url
end

Instance Method Details

#to_json(options = {}) ⇒ Object



89
90
91
92
93
94
95
# File 'lib/twilio-ruby/rest/voice/v2/recording.rb', line 89

def to_json(options = {})
{
        "url": @url,
        "method": @method,
        "events": @events,
}.to_json(options)
end