Class: Twilio::REST::FlexApi::V1::InsightsSegmentsInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ InsightsSegmentsInstance

Initialize the InsightsSegmentsInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this InsightsSegments resource.

  • sid (String) —

    The SID of the Call resource to fetch.



283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 283

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'segment_id' => payload['segment_id'],
        'external_id' => payload['external_id'],
        'queue' => payload['queue'],
        'external_contact' => payload['external_contact'],
        'external_segment_link_id' => payload['external_segment_link_id'],
        'date' => payload['date'],
        'account_id' => payload['account_id'],
        'external_segment_link' => payload['external_segment_link'],
        'agent_id' => payload['agent_id'],
        'agent_phone' => payload['agent_phone'],
        'agent_name' => payload['agent_name'],
        'agent_team_name' => payload['agent_team_name'],
        'agent_team_name_in_hierarchy' => payload['agent_team_name_in_hierarchy'],
        'agent_link' => payload['agent_link'],
        'customer_phone' => payload['customer_phone'],
        'customer_name' => payload['customer_name'],
        'customer_link' => payload['customer_link'],
        'segment_recording_offset' => payload['segment_recording_offset'],
        'media' => payload['media'],
        'assessment_type' => payload['assessment_type'],
        'assessment_percentage' => payload['assessment_percentage'],
        'url' => payload['url'],
    }
end

Instance Method Details

#account_id ⇒ String

Returns The unique id for the account.

Returns:

  • (String) —

    The unique id for the account.



353
354
355
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 353

def 
    @properties['account_id']
end

#agent_id ⇒ String

Returns The unique id for the agent.

Returns:

  • (String) —

    The unique id for the agent.



365
366
367
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 365

def agent_id
    @properties['agent_id']
end

Returns The link to the agent conversation.

Returns:

  • (String) —

    The link to the agent conversation.



395
396
397
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 395

def agent_link
    @properties['agent_link']
end

#agent_name ⇒ String

Returns The name of the agent.

Returns:

  • (String) —

    The name of the agent.



377
378
379
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 377

def agent_name
    @properties['agent_name']
end

#agent_phone ⇒ String

Returns The phone number of the agent.

Returns:

  • (String) —

    The phone number of the agent.



371
372
373
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 371

def agent_phone
    @properties['agent_phone']
end

#agent_team_name ⇒ String

Returns The team name to which agent belongs.

Returns:

  • (String) —

    The team name to which agent belongs.



383
384
385
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 383

def agent_team_name
    @properties['agent_team_name']
end

#agent_team_name_in_hierarchy ⇒ String

Returns he team name to which agent belongs.

Returns:

  • (String) —

    he team name to which agent belongs.



389
390
391
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 389

def agent_team_name_in_hierarchy
    @properties['agent_team_name_in_hierarchy']
end

#assessment_percentage ⇒ Hash

Returns The percentage scored on the Assessments.

Returns:

  • (Hash) —

    The percentage scored on the Assessments.



437
438
439
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 437

def assessment_percentage
    @properties['assessment_percentage']
end

#assessment_type ⇒ Hash

Returns The type of the assessment.

Returns:

  • (Hash) —

    The type of the assessment.



431
432
433
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 431

def assessment_type
    @properties['assessment_type']
end

Returns The link to the customer conversation.

Returns:

  • (String) —

    The link to the customer conversation.



413
414
415
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 413

def customer_link
    @properties['customer_link']
end

#customer_name ⇒ String

Returns The name of the customer.

Returns:

  • (String) —

    The name of the customer.



407
408
409
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 407

def customer_name
    @properties['customer_name']
end

#customer_phone ⇒ String

Returns The phone number of the customer.

Returns:

  • (String) —

    The phone number of the customer.



401
402
403
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 401

def customer_phone
    @properties['customer_phone']
end

#date ⇒ String

Returns The date of the conversation.

Returns:

  • (String) —

    The date of the conversation.



347
348
349
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 347

def date
    @properties['date']
end

#external_contact ⇒ String

Returns:

  • (String)


335
336
337
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 335

def external_contact
    @properties['external_contact']
end

#external_id ⇒ String

Returns The unique id for the conversation.

Returns:

  • (String) —

    The unique id for the conversation.



323
324
325
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 323

def external_id
    @properties['external_id']
end

Returns The hyperlink to recording of the task event.

Returns:

  • (String) —

    The hyperlink to recording of the task event.



359
360
361
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 359

def external_segment_link
    @properties['external_segment_link']
end

Returns The uuid for the external_segment_link.

Returns:

  • (String) —

    The uuid for the external_segment_link.



341
342
343
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 341

def external_segment_link_id
    @properties['external_segment_link_id']
end

#inspect ⇒ Object

Provide a detailed, user friendly representation



455
456
457
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 455

def inspect
    "<Twilio.FlexApi.V1.InsightsSegmentsInstance>"
end

#media ⇒ Hash

Returns The media identifiers of the conversation.

Returns:

  • (Hash) —

    The media identifiers of the conversation.



425
426
427
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 425

def media
    @properties['media']
end

#queue ⇒ String

Returns:

  • (String)


329
330
331
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 329

def queue
    @properties['queue']
end

#segment_id ⇒ String

Returns To unique id of the segment.

Returns:

  • (String) —

    To unique id of the segment



317
318
319
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 317

def segment_id
    @properties['segment_id']
end

#segment_recording_offset ⇒ String

Returns The offset value for the recording.

Returns:

  • (String) —

    The offset value for the recording.



419
420
421
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 419

def segment_recording_offset
    @properties['segment_recording_offset']
end

#to_s ⇒ Object

Provide a user friendly representation



449
450
451
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 449

def to_s
    "<Twilio.FlexApi.V1.InsightsSegmentsInstance>"
end

#url ⇒ String

Returns:

  • (String)


443
444
445
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 443

def url
    @properties['url']
end