Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCustomerAi
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCustomerAi
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant.rb,
lib/twilio-ruby/rest/assistants/v1/assistant.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceCustomerAi
constructor
A new instance of AssistantsV1ServiceCustomerAi.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceCustomerAi
Returns a new instance of AssistantsV1ServiceCustomerAi.
51 52 53 54 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 51 def initialize(payload) @perception_engine_enabled = payload["perception_engine_enabled"] @personalization_engine_enabled = payload["personalization_engine_enabled"] end |
Instance Attribute Details
#perception_engine_enabled ⇒ Object
50 51 52 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 50 def perception_engine_enabled @perception_engine_enabled end |
#personalization_engine_enabled ⇒ Object
50 51 52 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 50 def personalization_engine_enabled @personalization_engine_enabled end |
Instance Method Details
#to_json(options = {}) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 55 def to_json( = {}) { "perception_engine_enabled": @perception_engine_enabled, "personalization_engine_enabled": @personalization_engine_enabled, }.to_json() end |