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



218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 218

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



241
242
243
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 241

def 
    @properties['account_sid']
end

#agent_idString



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

def agent_id
    @properties['agent_id']
end

#assessment_sidString



247
248
249
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 247

def assessment_sid
    @properties['assessment_sid']
end

#commentHash



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

def comment
    @properties['comment']
end

#inspectObject

Provide a detailed, user friendly representation



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

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

#offsetFloat



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

def offset
    @properties['offset']
end

#reportBoolean



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

def report
    @properties['report']
end

#segment_idString



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

def segment_id
    @properties['segment_id']
end

#timestampFloat



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

def timestamp
    @properties['timestamp']
end

#to_sObject

Provide a user friendly representation



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

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

#urlString



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

def url
    @properties['url']
end

#user_emailString



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

def user_email
    @properties['user_email']
end

#user_nameString



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

def user_name
    @properties['user_name']
end

#weightFloat



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

def weight
    @properties['weight']
end