Class: Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSettingsAnswerSetsListResponse
constructor
A new instance of InsightsSettingsAnswerSetsListResponse.
- #insights_settings_answer_sets ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InsightsSettingsAnswerSetsListResponse
Returns a new instance of InsightsSettingsAnswerSetsListResponse.
155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.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_answer_sets = data_list.map do |data| InsightsSettingsAnswerSetsInstance.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_answer_sets.rb', line 171 def headers @headers end |
#insights_settings_answer_sets ⇒ Object
167 168 169 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 167 def insights_settings_answer_sets @insights_settings_answer_sets end |
#status_code ⇒ Object
175 176 177 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 175 def status_code @status_code end |