Class: Twilio::REST::Insights::V1::CallContext::EventInstance
- Inherits:
-
Twilio::REST::InstanceResource
- Object
- Twilio::REST::InstanceResource
- Twilio::REST::Insights::V1::CallContext::EventInstance
- Defined in:
- lib/twilio-ruby/rest/insights/v1/call/event.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
-
#call_sid ⇒ String
The unique SID identifier of the Call.
-
#carrier_edge ⇒ Hash
Represents the connection between Twilio and our immediate carrier partners.
-
#client_edge ⇒ Hash
Represents the Twilio media gateway for Client calls.
- #edge ⇒ TwilioEdge
-
#group ⇒ String
Event group.
-
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
constructor
Initialize the EventInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #level ⇒ Level
-
#name ⇒ String
Event name.
-
#sdk_edge ⇒ Hash
Represents the Voice SDK running locally in the browser or in the Android/iOS application.
-
#sip_edge ⇒ Hash
Represents the Twilio media gateway for SIP interface and SIP trunking calls.
-
#timestamp ⇒ String
Event time.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
Initialize the EventInstance
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 261 def initialize(version, payload , call_sid: nil) super(version) # Marshaled Properties @properties = { 'timestamp' => payload['timestamp'], 'call_sid' => payload['call_sid'], 'account_sid' => payload['account_sid'], 'edge' => payload['edge'], 'group' => payload['group'], 'level' => payload['level'], 'name' => payload['name'], 'carrier_edge' => payload['carrier_edge'], 'sip_edge' => payload['sip_edge'], 'sdk_edge' => payload['sdk_edge'], 'client_edge' => payload['client_edge'], } end |
Instance Method Details
#account_sid ⇒ String
296 297 298 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 296 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
290 291 292 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 290 def call_sid @properties['call_sid'] end |
#carrier_edge ⇒ Hash
326 327 328 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 326 def carrier_edge @properties['carrier_edge'] end |
#client_edge ⇒ Hash
344 345 346 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 344 def client_edge @properties['client_edge'] end |
#edge ⇒ TwilioEdge
302 303 304 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 302 def edge @properties['edge'] end |
#group ⇒ String
308 309 310 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 308 def group @properties['group'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
356 357 358 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 356 def inspect "<Twilio.Insights.V1.EventInstance>" end |
#level ⇒ Level
314 315 316 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 314 def level @properties['level'] end |
#name ⇒ String
320 321 322 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 320 def name @properties['name'] end |
#sdk_edge ⇒ Hash
338 339 340 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 338 def sdk_edge @properties['sdk_edge'] end |
#sip_edge ⇒ Hash
332 333 334 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 332 def sip_edge @properties['sip_edge'] end |
#timestamp ⇒ String
284 285 286 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 284 def @properties['timestamp'] end |
#to_s ⇒ Object
Provide a user friendly representation
350 351 352 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 350 def to_s "<Twilio.Insights.V1.EventInstance>" end |