Class: Twilio::REST::Insights::V1::CallSummariesInstance
- Inherits:
-
Twilio::REST::InstanceResource
- Object
- Twilio::REST::InstanceResource
- Twilio::REST::Insights::V1::CallSummariesInstance
- Defined in:
- lib/twilio-ruby/rest/insights/v1/call_summaries.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
- #annotation ⇒ Hash
- #answered_by ⇒ AnsweredBy
-
#attributes ⇒ Hash
Attributes capturing call-flow-specific details.
-
#call_sid ⇒ String
The unique SID identifier of the Call.
- #call_state ⇒ CallState
- #call_type ⇒ CallType
-
#carrier_edge ⇒ Hash
Contains metrics and properties for the Twilio media gateway of a PSTN call.
-
#client_edge ⇒ Hash
Contains metrics and properties for the Twilio media gateway of a Client call.
-
#connect_duration ⇒ String
Duration between when the call was answered and when it ended.
-
#created_time ⇒ Time
The time at which the Call was created, given in ISO 8601 format.
-
#duration ⇒ String
Duration between when the call was initiated and the call was ended.
-
#end_time ⇒ Time
The time at which the Call was ended, given in ISO 8601 format.
-
#from ⇒ Hash
The calling party.
-
#initialize(version, payload) ⇒ CallSummariesInstance
constructor
Initialize the CallSummariesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #processing_state ⇒ ProcessingState
-
#properties ⇒ Hash
Contains edge-agnostic call-level details.
-
#sdk_edge ⇒ Hash
Contains metrics and properties for the SDK sensor library for Client calls.
-
#sip_edge ⇒ Hash
Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
-
#start_time ⇒ Time
The time at which the Call was started, given in ISO 8601 format.
-
#tags ⇒ Array<String>
Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
-
#to ⇒ Hash
The called party.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trust ⇒ Hash
Contains trusted communications details including Branded Call and verified caller ID.
-
#url ⇒ String
The URL of this resource.
Constructor Details
#initialize(version, payload) ⇒ CallSummariesInstance
Initialize the CallSummariesInstance
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 383 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'call_sid' => payload['call_sid'], 'answered_by' => payload['answered_by'], 'call_type' => payload['call_type'], 'call_state' => payload['call_state'], 'processing_state' => payload['processing_state'], 'created_time' => Twilio.deserialize_iso8601_datetime(payload['created_time']), 'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']), 'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']), 'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i, 'connect_duration' => payload['connect_duration'] == nil ? payload['connect_duration'] : payload['connect_duration'].to_i, 'from' => payload['from'], 'to' => payload['to'], 'carrier_edge' => payload['carrier_edge'], 'client_edge' => payload['client_edge'], 'sdk_edge' => payload['sdk_edge'], 'sip_edge' => payload['sip_edge'], 'tags' => payload['tags'], 'url' => payload['url'], 'attributes' => payload['attributes'], 'properties' => payload['properties'], 'trust' => payload['trust'], 'annotation' => payload['annotation'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Account.
417 418 419 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 417 def account_sid @properties['account_sid'] end |
#annotation ⇒ Hash
549 550 551 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 549 def annotation @properties['annotation'] end |
#answered_by ⇒ AnsweredBy
429 430 431 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 429 def answered_by @properties['answered_by'] end |
#attributes ⇒ Hash
Returns Attributes capturing call-flow-specific details.
531 532 533 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 531 def attributes @properties['attributes'] end |
#call_sid ⇒ String
Returns The unique SID identifier of the Call.
423 424 425 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 423 def call_sid @properties['call_sid'] end |
#call_state ⇒ CallState
441 442 443 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 441 def call_state @properties['call_state'] end |
#call_type ⇒ CallType
435 436 437 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 435 def call_type @properties['call_type'] end |
#carrier_edge ⇒ Hash
Returns Contains metrics and properties for the Twilio media gateway of a PSTN call.
495 496 497 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 495 def carrier_edge @properties['carrier_edge'] end |
#client_edge ⇒ Hash
Returns Contains metrics and properties for the Twilio media gateway of a Client call.
501 502 503 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 501 def client_edge @properties['client_edge'] end |
#connect_duration ⇒ String
Returns Duration between when the call was answered and when it ended.
477 478 479 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 477 def connect_duration @properties['connect_duration'] end |
#created_time ⇒ Time
Returns The time at which the Call was created, given in ISO 8601 format. Can be different from ‘start_time` in the event of queueing due to CPS.
453 454 455 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 453 def created_time @properties['created_time'] end |
#duration ⇒ String
Returns Duration between when the call was initiated and the call was ended.
471 472 473 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 471 def duration @properties['duration'] end |
#end_time ⇒ Time
Returns The time at which the Call was ended, given in ISO 8601 format.
465 466 467 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 465 def end_time @properties['end_time'] end |
#from ⇒ Hash
Returns The calling party.
483 484 485 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 483 def from @properties['from'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
561 562 563 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 561 def inspect "<Twilio.Insights.V1.CallSummariesInstance>" end |
#processing_state ⇒ ProcessingState
447 448 449 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 447 def processing_state @properties['processing_state'] end |
#properties ⇒ Hash
Returns Contains edge-agnostic call-level details.
537 538 539 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 537 def properties @properties['properties'] end |
#sdk_edge ⇒ Hash
Returns Contains metrics and properties for the SDK sensor library for Client calls.
507 508 509 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 507 def sdk_edge @properties['sdk_edge'] end |
#sip_edge ⇒ Hash
Returns Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
513 514 515 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 513 def sip_edge @properties['sip_edge'] end |
#start_time ⇒ Time
Returns The time at which the Call was started, given in ISO 8601 format.
459 460 461 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 459 def start_time @properties['start_time'] end |
#tags ⇒ Array<String>
Returns Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
519 520 521 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 519 def @properties['tags'] end |
#to ⇒ Hash
Returns The called party.
489 490 491 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 489 def to @properties['to'] end |
#to_s ⇒ Object
Provide a user friendly representation
555 556 557 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 555 def to_s "<Twilio.Insights.V1.CallSummariesInstance>" end |
#trust ⇒ Hash
Returns Contains trusted communications details including Branded Call and verified caller ID.
543 544 545 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 543 def trust @properties['trust'] end |
#url ⇒ String
Returns The URL of this resource.
525 526 527 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 525 def url @properties['url'] end |