Class: Convoy::ApiKey
- Inherits:
-
ApiResource
- Object
- ApiResource
- Convoy::ApiKey
- Extended by:
- Convoy::ApiOperations::Create
- Includes:
- Convoy::ApiOperations::Delete, Convoy::ApiOperations::Get, Convoy::ApiOperations::List, Convoy::ApiOperations::Save
- Defined in:
- lib/convoy/resources/api_key.rb
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#initialize(id = nil, config = Convoy.config, **kwargs) ⇒ ApiKey
constructor
A new instance of ApiKey.
- #resource_uri ⇒ Object
Methods included from Convoy::ApiOperations::Create
Methods included from Convoy::ApiOperations::List
Methods included from Convoy::ApiOperations::Delete
Methods included from Convoy::ApiOperations::Save
Methods included from Convoy::ApiOperations::Get
Methods inherited from ApiResource
Methods included from Convoy::ApiOperations::Request
Constructor Details
Instance Method Details
#resource_uri ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/convoy/resources/api_key.rb', line 16 def resource_uri if @id.nil? return "#{project_base_uri}/security/keys" end "#{project_base_uri}/security/keys/#{@id}" end |