Class: Twilio::REST::FlexApi::V1::InsightsQuestionnairesListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of InsightsQuestionnairesListResponse.

Parameters:



481
482
483
484
485
486
487
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb', line 481

def initialize(version, payload, key)
   @insights_questionnaires_instance = payload.body[key].map do |data|
    InsightsQuestionnairesInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



574
575
576
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb', line 574

def headers
  @headers
end

#insights_questionnairesObject



570
571
572
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb', line 570

def insights_questionnaires
    @insights_questionnaires
end

#insights_questionnaires_instanceObject



489
490
491
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb', line 489

def insights_questionnaires_instance
    @instance
end

#status_codeObject



578
579
580
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb', line 578

def status_code
  @status_code
end