Class: Twilio::REST::FlexApi::V1::InsightsSettingsAnswerSetsInstance

Inherits:
InstanceResource
  • 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, payload) ⇒ InsightsSettingsAnswerSetsInstance

Initialize the InsightsSettingsAnswerSetsInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this InsightsSettingsAnswerSets resource.

  • sid (String)

    The SID of the Call resource to fetch.



97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 97

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'account_sid' => payload['account_sid'],
        'answer_sets' => payload['answer_sets'],
        'answer_set_categories' => payload['answer_set_categories'],
        'not_applicable' => payload['not_applicable'],
        'url' => payload['url'],
    }
end

Instance Method Details

#account_sidString

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.

Returns:



113
114
115
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 113

def 
    @properties['account_sid']
end

#answer_set_categoriesHash

Returns The list of answer set categories.

Returns:

  • (Hash)

    The list of answer set categories



125
126
127
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 125

def answer_set_categories
    @properties['answer_set_categories']
end

#answer_setsHash

Returns The lis of answer sets.

Returns:

  • (Hash)

    The lis of answer sets



119
120
121
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 119

def answer_sets
    @properties['answer_sets']
end

#inspectObject

Provide a detailed, user friendly representation



149
150
151
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 149

def inspect
    "<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsInstance>"
end

#not_applicableHash

Returns The details for not applicable answer set.

Returns:

  • (Hash)

    The details for not applicable answer set



131
132
133
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 131

def not_applicable
    @properties['not_applicable']
end

#to_sObject

Provide a user friendly representation



143
144
145
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 143

def to_s
    "<Twilio.FlexApi.V1.InsightsSettingsAnswerSetsInstance>"
end

#urlString

Returns:

  • (String)


137
138
139
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb', line 137

def url
    @properties['url']
end