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

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 InsightsAssessmentsComment resource.

  • sid (String)

    The SID of the Call resource to fetch.



228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 228

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

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.

Returns:



251
252
253
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 251

def 
    @properties['account_sid']
end

#agent_idString

Returns The id of the agent.

Returns:

  • (String)

    The id of the agent.



287
288
289
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 287

def agent_id
    @properties['agent_id']
end

#assessment_sidString

Returns The SID of the assessment.

Returns:

  • (String)

    The SID of the assessment.



257
258
259
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 257

def assessment_sid
    @properties['assessment_sid']
end

#commentHash

Returns The comment added for assessment.

Returns:

  • (Hash)

    The comment added for assessment.



263
264
265
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 263

def comment
    @properties['comment']
end

#inspectObject

Provide a detailed, user friendly representation



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

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

#offsetFloat

Returns The offset.

Returns:

  • (Float)

    The offset



269
270
271
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 269

def offset
    @properties['offset']
end

#reportBoolean

Returns The flag indicating if this assessment is part of report.

Returns:

  • (Boolean)

    The flag indicating if this assessment is part of report



275
276
277
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 275

def report
    @properties['report']
end

#segment_idString

Returns The id of the segment.

Returns:

  • (String)

    The id of the segment.



293
294
295
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 293

def segment_id
    @properties['segment_id']
end

#timestampFloat

Returns The timestamp when the record is inserted.

Returns:

  • (Float)

    The timestamp when the record is inserted



311
312
313
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 311

def timestamp
    @properties['timestamp']
end

#to_sObject

Provide a user friendly representation



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

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

#urlString

Returns:

  • (String)


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

def url
    @properties['url']
end

#user_emailString

Returns The email id of the user.

Returns:

  • (String)

    The email id of the user.



305
306
307
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 305

def user_email
    @properties['user_email']
end

#user_nameString

Returns The name of the user.

Returns:

  • (String)

    The name of the user.



299
300
301
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 299

def user_name
    @properties['user_name']
end

#weightFloat

Returns The weightage given to this comment.

Returns:

  • (Float)

    The weightage given to this comment



281
282
283
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 281

def weight
    @properties['weight']
end