Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssistantRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceCreateAssistantRequest
- 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) ⇒ AssistantsV1ServiceCreateAssistantRequest
constructor
A new instance of AssistantsV1ServiceCreateAssistantRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceCreateAssistantRequest
Returns a new instance of AssistantsV1ServiceCreateAssistantRequest.
29 30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 29 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
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 28 def customer_ai @customer_ai end |
#name ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 28 def name @name end |
#owner ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 28 def owner @owner end |
#personality_prompt ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 28 def personality_prompt @personality_prompt end |
#segment_credential ⇒ Object
28 29 30 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 28 def segment_credential @segment_credential end |
Instance Method Details
#to_json(options = {}) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 36 def to_json( = {}) { "customer_ai": @customer_ai, "name": @name, "owner": @owner, "personality_prompt": @personality_prompt, "segment_credential": @segment_credential, }.to_json() end |