Class: Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ InsightsSettingsAnswerSetsListResponse

Returns a new instance of InsightsSettingsAnswerSetsListResponse.

Parameters:



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

#headersObject



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_setsObject



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_codeObject



175
176
177
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 175

def status_code
  @status_code
end