Class: Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ InsightsAssessmentsCommentListResponse

Returns a new instance of InsightsAssessmentsCommentListResponse.

Parameters:



330
331
332
333
334
335
336
337
338
339
340
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 330

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @insights_assessments_comment = data_list.map do |data|
    InsightsAssessmentsCommentInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#headersObject



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

def headers
  @headers
end

#insights_assessments_commentObject



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

def insights_assessments_comment
    @insights_assessments_comment
end

#status_codeObject



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

def status_code
  @status_code
end