Class: Twilio::REST::Knowledge::V2::KnowledgeBasisList::UpdateKnowledgeBaseRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Knowledge::V2::KnowledgeBasisList::UpdateKnowledgeBaseRequest
- Defined in:
- lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb,
lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ UpdateKnowledgeBaseRequest
constructor
A new instance of UpdateKnowledgeBaseRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ UpdateKnowledgeBaseRequest
Returns a new instance of UpdateKnowledgeBaseRequest.
42 43 44 45 |
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 42 def initialize(payload) @display_name = payload["display_name"] @description = payload["description"] end |
Instance Attribute Details
#description ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 41 def description @description end |
#display_name ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 41 def display_name @display_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 46 def to_json( = {}) { "displayName": @display_name, "description": @description, }.to_json() end |