Class: DevinApi::Resources::Session
- Defined in:
- lib/devin_api/resources/session.rb
Overview
Session resource for the Devin API
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#[], #[]=, create, #id, #initialize, #method_missing, 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
Class Method Details
.pagination_supported? ⇒ Boolean
9 10 11 |
# File 'lib/devin_api/resources/session.rb', line 9 def self.pagination_supported? true end |
Instance Method Details
#path ⇒ Object
13 14 15 |
# File 'lib/devin_api/resources/session.rb', line 13 def path "/v1/session/#{session_id}" end |
#send_message(message) ⇒ Object
17 18 19 |
# File 'lib/devin_api/resources/session.rb', line 17 def () client.post("#{path}/message", { message: }) end |
#update_tags(tags) ⇒ Object
21 22 23 |
# File 'lib/devin_api/resources/session.rb', line 21 def () client.put("#{path}/tags", { tags: }) end |