Class: Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnowledgeRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceCreateKnowledgeRequest
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/knowledge.rb,
lib/twilio-ruby/rest/assistants/v1/knowledge.rb
Instance Attribute Summary collapse
- #assistant_id ⇒ Object
- #description ⇒ Object
- #knowledge_source_details ⇒ Object
- #name ⇒ Object
- #policy ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceCreateKnowledgeRequest
constructor
A new instance of AssistantsV1ServiceCreateKnowledgeRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceCreateKnowledgeRequest
Returns a new instance of AssistantsV1ServiceCreateKnowledgeRequest.
30 31 32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 30 def initialize(payload) @assistant_id = payload["assistant_id"] @description = payload["description"] @knowledge_source_details = payload["knowledge_source_details"] @name = payload["name"] @policy = payload["policy"] @type = payload["type"] end |
Instance Attribute Details
#assistant_id ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def assistant_id @assistant_id end |
#description ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def description @description end |
#knowledge_source_details ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def knowledge_source_details @knowledge_source_details end |
#name ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def name @name end |
#policy ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def policy @policy end |
#type ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 29 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 38 def to_json( = {}) { "assistant_id": @assistant_id, "description": @description, "knowledge_source_details": @knowledge_source_details, "name": @name, "policy": @policy, "type": @type, }.to_json() end |