class Twilio::REST::Api::V2010::AccountContext::CallContext::EventInstance

Public Class Methods

new(version, payload, account_sid: nil, call_sid: nil) click to toggle source

Initialize the EventInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] account_sid The SID of the

{Account}[https://www.twilio.com/docs/iam/api/account] that created this Call
resource.

@param [String] call_sid The unique string that we created to identify this Call

resource.

@return [EventInstance] EventInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/api/v2010/account/call/event.rb
165 def initialize(version, payload, account_sid: nil, call_sid: nil)
166   super(version)
167 
168   # Marshaled Properties
169   @properties = {'request' => payload['request'], 'response' => payload['response'], }
170 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/call/event.rb
192 def inspect
193   "<Twilio.Api.V2010.EventInstance>"
194 end
request() click to toggle source

@return [Hash] Call Request.

    # File lib/twilio-ruby/rest/api/v2010/account/call/event.rb
174 def request
175   @properties['request']
176 end
response() click to toggle source

@return [Hash] Call Response with Events.

    # File lib/twilio-ruby/rest/api/v2010/account/call/event.rb
180 def response
181   @properties['response']
182 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/call/event.rb
186 def to_s
187   "<Twilio.Api.V2010.EventInstance>"
188 end