Class: Dock::Api::Anchors

Inherits:
Base
  • Object
show all
Defined in:
lib/dock/api/endpoints/anchors.rb

Constant Summary collapse

NAMESPACE =
'/anchors'

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/anchors.rb', line 17

def create(attrs = {})
  post(NAMESPACE, attrs)
end

.find(id) ⇒ Object



13
14
15
# File 'lib/dock/api/endpoints/anchors.rb', line 13

def find(id)
  get("#{NAMESPACE}/#{id}")
end

.listObject



9
10
11
# File 'lib/dock/api/endpoints/anchors.rb', line 9

def list
  get(NAMESPACE)
end

.verify(attrs = {}) ⇒ Object



21
22
23
# File 'lib/dock/api/endpoints/anchors.rb', line 21

def verify(attrs = {})
  post("#{NAMESPACE}/verify", attrs)
end