Class: Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnowledgeRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::KnowledgeList::AssistantsV1ServiceUpdateKnowledgeRequest
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/knowledge.rb,
lib/twilio-ruby/rest/assistants/v1/knowledge.rb
Instance Attribute Summary collapse
- #description ⇒ Object
- #knowledge_source_details ⇒ Object
- #name ⇒ Object
- #policy ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceUpdateKnowledgeRequest
constructor
A new instance of AssistantsV1ServiceUpdateKnowledgeRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceUpdateKnowledgeRequest
Returns a new instance of AssistantsV1ServiceUpdateKnowledgeRequest.
82 83 84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 82 def initialize(payload) @description = payload["description"] @knowledge_source_details = payload["knowledge_source_details"] @name = payload["name"] @policy = payload["policy"] @type = payload["type"] end |
Instance Attribute Details
#description ⇒ Object
81 82 83 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81 def description @description end |
#knowledge_source_details ⇒ Object
81 82 83 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81 def knowledge_source_details @knowledge_source_details end |
#name ⇒ Object
81 82 83 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81 def name @name end |
#policy ⇒ Object
81 82 83 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81 def policy @policy end |
#type ⇒ Object
81 82 83 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 81 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 89 def to_json( = {}) { "description": @description, "knowledge_source_details": @knowledge_source_details, "name": @name, "policy": @policy, "type": @type, }.to_json() end |