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.
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
#headers ⇒ Object
346 347 348 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 346 def headers @headers end |
#insights_assessments_comment ⇒ Object
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_code ⇒ Object
350 351 352 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 350 def status_code @status_code end |