Class: DevinApi::Resources::Secret

Inherits:
Base
  • Object
show all
Defined in:
lib/devin_api/resources/secret.rb

Overview

Secret resource for the Devin API

Instance Attribute Summary

Attributes inherited from Base

#attributes, #client

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



13
14
15
# File 'lib/devin_api/resources/secret.rb', line 13

def delete
  client.delete(path)
end

#path ⇒ Object



9
10
11
# File 'lib/devin_api/resources/secret.rb', line 9

def path
  "/v1/secrets/#{id}"
end