Class: Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsList
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb
Instance Method Summary collapse
-
#fetch(authorization: :unset) ⇒ InsightsSettingsAnswerSetsInstance
Fetch the InsightsSettingsAnswerSetsInstance.
-
#fetch_with_metadata(authorization: :unset) ⇒ InsightsSettingsAnswerSetsInstance
Fetch the InsightsSettingsAnswerSetsInstanceMetadata.
-
#initialize(version) ⇒ InsightsSettingsAnswerSetsList
constructor
Initialize the InsightsSettingsAnswerSetsList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ InsightsSettingsAnswerSetsList
Initialize the InsightsSettingsAnswerSetsList
26 27 28 29 30 31 32 33 |
# 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
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 38 def fetch( authorization: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => , }) payload = @version.fetch('GET', @uri, headers: headers) InsightsSettingsAnswerSetsInstance.new( @version, payload, ) end |
#fetch_with_metadata(authorization: :unset) ⇒ InsightsSettingsAnswerSetsInstance
Fetch the InsightsSettingsAnswerSetsInstanceMetadata
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 59 def ( authorization: :unset ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => , }) response = @version.('GET', @uri, headers: headers) insights_settings_answer_sets_instance = InsightsSettingsAnswerSetsInstance.new( @version, response.body, ) InsightsSettingsAnswerSetsInstanceMetadata.new( @version, insights_settings_answer_sets_instance, response.headers, response.status_code ) end |
#to_s ⇒ Object
Provide a user friendly representation
86 87 88 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 86 def to_s '#<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsList>' end |