Class: Dock::Api::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/dock/api/endpoints/base.rb
Class Method Summary
collapse
Class Method Details
.connection ⇒ Object
13
14
15
|
# File 'lib/dock/api/endpoints/base.rb', line 13
def connection
Dock::Api.connection
end
|
.delete(url) ⇒ Object
23
24
25
26
27
|
# File 'lib/dock/api/endpoints/base.rb', line 23
def delete(url)
handle_status do
connection.delete(url)
end
end
|
.get(url) ⇒ Object
17
18
19
20
21
|
# File 'lib/dock/api/endpoints/base.rb', line 17
def get(url)
handle_status do
connection.get(url)
end
end
|
.patch(url, data) ⇒ Object
35
36
37
38
39
|
# File 'lib/dock/api/endpoints/base.rb', line 35
def patch(url, data)
handle_status do
connection.patch(url, data)
end
end
|
.post(url, data) ⇒ Object
29
30
31
32
33
|
# File 'lib/dock/api/endpoints/base.rb', line 29
def post(url, data)
handle_status do
connection.post(url, data)
end
end
|