Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssistantRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceUpdateAssistantRequest
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant.rb,
lib/twilio-ruby/rest/assistants/v1/assistant.rb
Instance Attribute Summary collapse
- #customer_ai ⇒ Object
- #name ⇒ Object
- #owner ⇒ Object
- #personality_prompt ⇒ Object
- #segment_credential ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceUpdateAssistantRequest
constructor
A new instance of AssistantsV1ServiceUpdateAssistantRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceUpdateAssistantRequest
Returns a new instance of AssistantsV1ServiceUpdateAssistantRequest.
89 90 91 92 93 94 95 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 89 def initialize(payload) @customer_ai = payload["customer_ai"] @name = payload["name"] @owner = payload["owner"] @personality_prompt = payload["personality_prompt"] @segment_credential = payload["segment_credential"] end |
Instance Attribute Details
#customer_ai ⇒ Object
88 89 90 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88 def customer_ai @customer_ai end |
#name ⇒ Object
88 89 90 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88 def name @name end |
#owner ⇒ Object
88 89 90 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88 def owner @owner end |
#personality_prompt ⇒ Object
88 89 90 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88 def personality_prompt @personality_prompt end |
#segment_credential ⇒ Object
88 89 90 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 88 def segment_credential @segment_credential end |
Instance Method Details
#to_json(options = {}) ⇒ Object
96 97 98 99 100 101 102 103 104 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 96 def to_json( = {}) { "customer_ai": @customer_ai, "name": @name, "owner": @owner, "personality_prompt": @personality_prompt, "segment_credential": @segment_credential, }.to_json() end |