Class: Shipwire::Secret

Inherits:
Api
  • Object
show all
Defined in:
lib/shipwire/secret.rb

Instance Method Summary collapse

Methods inherited from Api

#request

Instance Method Details

#createObject



7
8
9
# File 'lib/shipwire/secret.rb', line 7

def create
  request(:post, 'secret')
end

#find(id) ⇒ Object



11
12
13
# File 'lib/shipwire/secret.rb', line 11

def find(id)
  request(:get, "secret/#{id}")
end

#listObject



3
4
5
# File 'lib/shipwire/secret.rb', line 3

def list
  request(:get, 'secret')
end

#remove(id) ⇒ Object Also known as: delete



15
16
17
# File 'lib/shipwire/secret.rb', line 15

def remove(id)
  request(:delete, "secret/#{id}")
end