Class: Twilio::REST::FlexApi::V1::InsightsSettingsCommentList

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

Overview

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ InsightsSettingsCommentList

Initialize the InsightsSettingsCommentList

Parameters:

  • version (Version)

    Version that contains the resource



20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 20

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}
  @uri = "/Insights/QM/Settings/CommentTags"
end

Instance Method Details

#fetch(token: :unset) ⇒ InsightsSettingsCommentInstance

Fetch the InsightsSettingsCommentInstance

Parameters:

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

    The Token HTTP request header

Returns:



32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 32

def fetch(token: :unset)
  headers = Twilio::Values.of({'Token' => token, })

  payload = @version.fetch('GET', @uri, headers: headers)

  InsightsSettingsCommentInstance.new(@version, payload, )
end

#to_sObject

Provide a user friendly representation



42
43
44
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 42

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