Class: Dock::Api::Dids

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

Constant Summary collapse

NAMESPACE =
'/dids'

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/dids.rb', line 21

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

.destroy(id) ⇒ Object



17
18
19
# File 'lib/dock/api/endpoints/dids.rb', line 17

def destroy(id)
  delete("#{NAMESPACE}/#{id}")
end

.find(id) ⇒ Object



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

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

.listObject



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

def list
  get(NAMESPACE)
end

.update(id, attrs = {}) ⇒ Object



25
26
27
# File 'lib/dock/api/endpoints/dids.rb', line 25

def update(id, attrs = {})
  patch("#{NAMESPACE}/#{id}", attrs)
end