Class: Twilio::REST::FlexApi::V1::InsightsSettingsCommentListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::InsightsSettingsCommentListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSettingsCommentListResponse
constructor
A new instance of InsightsSettingsCommentListResponse.
- #insights_settings_comment ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSettingsCommentListResponse
Returns a new instance of InsightsSettingsCommentListResponse.
155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 155 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @insights_settings_comment = data_list.map do |data| InsightsSettingsCommentInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
171 172 173 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 171 def headers @headers end |
#insights_settings_comment ⇒ Object
167 168 169 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 167 def insights_settings_comment @insights_settings_comment end |
#status_code ⇒ Object
175 176 177 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 175 def status_code @status_code end |