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:



336
337
338
339
340
341
342
343
344
345
346
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 336

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

#headers ⇒ Object



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

def headers
  @headers
end

#insights_assessments_comment ⇒ Object



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

def insights_assessments_comment
    @insights_assessments_comment
end

#status_code ⇒ Object



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

def status_code
  @status_code
end