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 account_sid.
-
#attributes ⇒ Hash
The attributes.
-
#call_sid ⇒ String
The call_sid.
-
#call_state ⇒ call_summaries.CallState
The call_state.
-
#call_type ⇒ call_summaries.CallType
The call_type.
-
#carrier_edge ⇒ Hash
The carrier_edge.
-
#client_edge ⇒ Hash
The client_edge.
-
#connect_duration ⇒ String
The connect_duration.
-
#created_time ⇒ Time
The created_time.
-
#duration ⇒ String
The duration.
-
#end_time ⇒ Time
The end_time.
-
#from ⇒ Hash
The from.
-
#initialize(version, payload) ⇒ CallSummariesInstance
constructor
Initialize the CallSummariesInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#processing_state ⇒ call_summaries.ProcessingState
The processing_state.
-
#properties ⇒ Hash
The properties.
-
#sdk_edge ⇒ Hash
The sdk_edge.
-
#sip_edge ⇒ Hash
The sip_edge.
-
#start_time ⇒ Time
The start_time.
-
#tags ⇒ Array[String]
The tags.
-
#to ⇒ Hash
The to.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trust ⇒ Hash
The trust.
-
#url ⇒ String
The url.
Constructor Details
#initialize(version, payload) ⇒ CallSummariesInstance
Initialize the CallSummariesInstance
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 258 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'call_sid' => payload['call_sid'], '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'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The account_sid.
289 290 291 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 289 def account_sid @properties['account_sid'] end |
#attributes ⇒ Hash
Returns The attributes.
397 398 399 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 397 def attributes @properties['attributes'] end |
#call_sid ⇒ String
Returns The call_sid.
295 296 297 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 295 def call_sid @properties['call_sid'] end |
#call_state ⇒ call_summaries.CallState
Returns The call_state.
307 308 309 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 307 def call_state @properties['call_state'] end |
#call_type ⇒ call_summaries.CallType
Returns The call_type.
301 302 303 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 301 def call_type @properties['call_type'] end |
#carrier_edge ⇒ Hash
Returns The carrier_edge.
361 362 363 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 361 def carrier_edge @properties['carrier_edge'] end |
#client_edge ⇒ Hash
Returns The client_edge.
367 368 369 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 367 def client_edge @properties['client_edge'] end |
#connect_duration ⇒ String
Returns The connect_duration.
343 344 345 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 343 def connect_duration @properties['connect_duration'] end |
#created_time ⇒ Time
Returns The created_time.
319 320 321 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 319 def created_time @properties['created_time'] end |
#duration ⇒ String
Returns The duration.
337 338 339 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 337 def duration @properties['duration'] end |
#end_time ⇒ Time
Returns The end_time.
331 332 333 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 331 def end_time @properties['end_time'] end |
#from ⇒ Hash
Returns The from.
349 350 351 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 349 def from @properties['from'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
421 422 423 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 421 def inspect "<Twilio.Insights.V1.CallSummariesInstance>" end |
#processing_state ⇒ call_summaries.ProcessingState
Returns The processing_state.
313 314 315 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 313 def processing_state @properties['processing_state'] end |
#properties ⇒ Hash
Returns The properties.
403 404 405 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 403 def properties @properties['properties'] end |
#sdk_edge ⇒ Hash
Returns The sdk_edge.
373 374 375 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 373 def sdk_edge @properties['sdk_edge'] end |
#sip_edge ⇒ Hash
Returns The sip_edge.
379 380 381 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 379 def sip_edge @properties['sip_edge'] end |
#start_time ⇒ Time
Returns The start_time.
325 326 327 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 325 def start_time @properties['start_time'] end |
#tags ⇒ Array[String]
Returns The tags.
385 386 387 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 385 def @properties['tags'] end |
#to ⇒ Hash
Returns The to.
355 356 357 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 355 def to @properties['to'] end |
#to_s ⇒ Object
Provide a user friendly representation
415 416 417 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 415 def to_s "<Twilio.Insights.V1.CallSummariesInstance>" end |
#trust ⇒ Hash
Returns The trust.
409 410 411 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 409 def trust @properties['trust'] end |
#url ⇒ String
Returns The url.
391 392 393 |
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 391 def url @properties['url'] end |