Class: Dock::Api::Credentials
- Inherits:
-
Base
- Object
- Base
- Dock::Api::Credentials
show all
- Defined in:
- lib/dock/api/endpoints/credentials.rb
Constant Summary
collapse
- NAMESPACE =
'/credentials'
Class Method Summary
collapse
Methods inherited from Base
connection, delete, get, patch, post
Class Method Details
.create(attrs = {}) ⇒ Object
17
18
19
|
# File 'lib/dock/api/endpoints/credentials.rb', line 17
def create(attrs = {})
post(NAMESPACE, attrs)
end
|
.destroy(id) ⇒ Object
13
14
15
|
# File 'lib/dock/api/endpoints/credentials.rb', line 13
def destroy(id)
delete("#{NAMESPACE}/#{id}")
end
|
.find(id) ⇒ Object
9
10
11
|
# File 'lib/dock/api/endpoints/credentials.rb', line 9
def find(id)
get("#{NAMESPACE}/#{id}")
end
|