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