Class: Twilio::REST::Insights::V1::CallSummariesInstance

Inherits:
Twilio::REST::InstanceResource show all
Defined in:
lib/twilio-ruby/rest/insights/v1/call_summaries.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ CallSummariesInstance

Initialize the CallSummariesInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio


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_sidString

Returns The account_sid.

Returns:

  • (String)

    The account_sid


289
290
291
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 289

def 
  @properties['account_sid']
end

#attributesHash

Returns The attributes.

Returns:

  • (Hash)

    The attributes


397
398
399
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 397

def attributes
  @properties['attributes']
end

#call_sidString

Returns The call_sid.

Returns:

  • (String)

    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_statecall_summaries.CallState

Returns The call_state.

Returns:


307
308
309
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 307

def call_state
  @properties['call_state']
end

#call_typecall_summaries.CallType

Returns The call_type.

Returns:


301
302
303
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 301

def call_type
  @properties['call_type']
end

#carrier_edgeHash

Returns The carrier_edge.

Returns:

  • (Hash)

    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_edgeHash

Returns The client_edge.

Returns:

  • (Hash)

    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_durationString

Returns The connect_duration.

Returns:

  • (String)

    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_timeTime

Returns The created_time.

Returns:

  • (Time)

    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

#durationString

Returns The duration.

Returns:

  • (String)

    The duration


337
338
339
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 337

def duration
  @properties['duration']
end

#end_timeTime

Returns The end_time.

Returns:

  • (Time)

    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

#fromHash

Returns The from.

Returns:

  • (Hash)

    The from


349
350
351
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 349

def from
  @properties['from']
end

#inspectObject

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_statecall_summaries.ProcessingState

Returns The processing_state.

Returns:


313
314
315
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 313

def processing_state
  @properties['processing_state']
end

#propertiesHash

Returns The properties.

Returns:

  • (Hash)

    The properties


403
404
405
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 403

def properties
  @properties['properties']
end

#sdk_edgeHash

Returns The sdk_edge.

Returns:

  • (Hash)

    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_edgeHash

Returns The sip_edge.

Returns:

  • (Hash)

    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_timeTime

Returns The start_time.

Returns:

  • (Time)

    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

#tagsArray[String]

Returns The tags.

Returns:

  • (Array[String])

    The tags


385
386
387
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 385

def tags
  @properties['tags']
end

#toHash

Returns The to.

Returns:

  • (Hash)

    The to


355
356
357
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 355

def to
  @properties['to']
end

#to_sObject

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

#trustHash

Returns The trust.

Returns:

  • (Hash)

    The trust


409
410
411
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 409

def trust
  @properties['trust']
end

#urlString

Returns The url.

Returns:

  • (String)

    The url


391
392
393
# File 'lib/twilio-ruby/rest/insights/v1/call_summaries.rb', line 391

def url
  @properties['url']
end