Class: Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InsightsAssessmentsCommentListResponse
constructor
A new instance of InsightsAssessmentsCommentListResponse.
- #insights_assessments_comment ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InsightsAssessmentsCommentListResponse
Returns a new instance of InsightsAssessmentsCommentListResponse.
338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 338 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
354 355 356 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 354 def headers @headers end |
#insights_assessments_comment ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 350 def insights_assessments_comment @insights_assessments_comment end |
#status_code ⇒ Object
358 359 360 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 358 def status_code @status_code end |