Class: DevinApi::Resources::Knowledge
- Defined in:
- lib/devin_api/resources/knowledge.rb
Overview
Knowledge resource for the Devin API
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #[]=, create, #id, #initialize, #method_missing, pagination_supported?, resource_name, resource_path, #respond_to_missing?, #to_hash
Constructor Details
This class inherits a constructor from DevinApi::Resources::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DevinApi::Resources::Base
Instance Method Details
#delete ⇒ Object
17 18 19 |
# File 'lib/devin_api/resources/knowledge.rb', line 17 def delete client.delete(path) end |
#path ⇒ Object
9 10 11 |
# File 'lib/devin_api/resources/knowledge.rb', line 9 def path "/v1/knowledge/#{id}" end |
#update(attributes = {}) ⇒ Object
13 14 15 |
# File 'lib/devin_api/resources/knowledge.rb', line 13 def update(attributes = {}) client.put(path, attributes) end |