Class: Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsList

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

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ InsightsSettingsAnswerSetsList

Initialize the InsightsSettingsAnswerSetsList

Parameters:

  • version (Version)

    Version that contains the resource



26
27
28
29
30
31
32
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 26

def initialize(version)
    super(version)
    # Path Solution
    @solution = {  }
    @uri = "/Insights/QualityManagement/Settings/AnswerSets"
    
end

Instance Method Details

#fetch(authorization: :unset) ⇒ InsightsSettingsAnswerSetsInstance

Fetch the InsightsSettingsAnswerSetsInstance

Parameters:

  • authorization (String) (defaults to: :unset)

    The Authorization HTTP request header

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 37

def fetch(
    authorization: :unset
)

    headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => authorization, })
    
    
    
    
    
    payload = @version.fetch('GET', @uri, headers: headers)
    InsightsSettingsAnswerSetsInstance.new(
        @version,
        payload,
    )
end

#to_sObject

Provide a user friendly representation



58
59
60
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 58

def to_s
    '#<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsList>'
end