Class: Twilio::REST::Api::V2010::AccountContext::CallContext::EventInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::EventInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/event.rb
Instance Method Summary collapse
-
#initialize(version, payload, account_sid: nil, call_sid: nil) ⇒ EventInstance
constructor
Initialize the EventInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#request ⇒ Hash
Call Request.
-
#response ⇒ Hash
Call Response with Events.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, call_sid: nil) ⇒ EventInstance
Initialize the EventInstance
165 166 167 168 169 170 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 165 def initialize(version, payload, account_sid: nil, call_sid: nil) super(version) # Marshaled Properties @properties = {'request' => payload['request'], 'response' => payload['response'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
192 193 194 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 192 def inspect "<Twilio.Api.V2010.EventInstance>" end |
#request ⇒ Hash
Returns Call Request.
174 175 176 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 174 def request @properties['request'] end |
#response ⇒ Hash
Returns Call Response with Events.
180 181 182 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 180 def response @properties['response'] end |
#to_s ⇒ Object
Provide a user friendly representation
186 187 188 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 186 def to_s "<Twilio.Api.V2010.EventInstance>" end |