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
Contains a dictionary representing the request of the call.
-
#response ⇒ Hash
Contains a dictionary representing the call response, including a list of the call events.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, call_sid: nil) ⇒ EventInstance
Initialize the EventInstance
170 171 172 173 174 175 176 177 178 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 170 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
201 202 203 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 201 def inspect "<Twilio.Api.V2010.EventInstance>" end |
#request ⇒ Hash
Returns Contains a dictionary representing the request of the call.
183 184 185 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 183 def request @properties['request'] end |
#response ⇒ Hash
Returns Contains a dictionary representing the call response, including a list of the call events.
189 190 191 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 189 def response @properties['response'] end |
#to_s ⇒ Object
Provide a user friendly representation
195 196 197 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/event.rb', line 195 def to_s "<Twilio.Api.V2010.EventInstance>" end |