Class: Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ InsightsAssessmentsCommentInstance

Initialize the InsightsAssessmentsCommentInstance



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 373

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'account_sid' => payload['account_sid'],
        'assessment_sid' => payload['assessment_sid'],
        'comment' => payload['comment'],
        'offset' => payload['offset'],
        'report' => payload['report'],
        'weight' => payload['weight'],
        'agent_id' => payload['agent_id'],
        'segment_id' => payload['segment_id'],
        'user_name' => payload['user_name'],
        'user_email' => payload['user_email'],
        'timestamp' => payload['timestamp'],
        'url' => payload['url'],
    }
end

Instance Method Details

#account_sidString



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

def 
    @properties['account_sid']
end

#agent_idString



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

def agent_id
    @properties['agent_id']
end

#assessment_sidString



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

def assessment_sid
    @properties['assessment_sid']
end

#commentHash



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

def comment
    @properties['comment']
end

#inspectObject

Provide a detailed, user friendly representation



475
476
477
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 475

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

#offsetString



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

def offset
    @properties['offset']
end

#reportBoolean



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

def report
    @properties['report']
end

#segment_idString



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

def segment_id
    @properties['segment_id']
end

#timestampString



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

def timestamp
    @properties['timestamp']
end

#to_sObject

Provide a user friendly representation



469
470
471
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 469

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

#urlString



463
464
465
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 463

def url
    @properties['url']
end

#user_emailString



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

def user_email
    @properties['user_email']
end

#user_nameString



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

def user_name
    @properties['user_name']
end

#weightString



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

def weight
    @properties['weight']
end