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



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
313
314
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 285

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_idString



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

def 
    @properties['account_id']
end

#agent_idString



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

def agent_id
    @properties['agent_id']
end


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

def agent_link
    @properties['agent_link']
end

#agent_nameString



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

def agent_name
    @properties['agent_name']
end

#agent_phoneString



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

def agent_phone
    @properties['agent_phone']
end

#agent_team_nameString



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

def agent_team_name
    @properties['agent_team_name']
end

#agent_team_name_in_hierarchyString



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

def agent_team_name_in_hierarchy
    @properties['agent_team_name_in_hierarchy']
end

#assessment_percentageHash



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

def assessment_percentage
    @properties['assessment_percentage']
end

#assessment_typeHash



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

def assessment_type
    @properties['assessment_type']
end


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

def customer_link
    @properties['customer_link']
end

#customer_nameString



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

def customer_name
    @properties['customer_name']
end

#customer_phoneString



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

def customer_phone
    @properties['customer_phone']
end

#dateString



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

def date
    @properties['date']
end

#external_contactString



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

def external_contact
    @properties['external_contact']
end

#external_idString



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

def external_id
    @properties['external_id']
end


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

def external_segment_link
    @properties['external_segment_link']
end


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

def external_segment_link_id
    @properties['external_segment_link_id']
end

#inspectObject

Provide a detailed, user friendly representation



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

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

#mediaHash



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

def media
    @properties['media']
end

#queueString



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

def queue
    @properties['queue']
end

#segment_idString



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

def segment_id
    @properties['segment_id']
end

#segment_recording_offsetString



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

def segment_recording_offset
    @properties['segment_recording_offset']
end

#to_sObject

Provide a user friendly representation



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

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

#urlString



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

def url
    @properties['url']
end