Class: Shipwire::Secret
Instance Method Summary collapse
- #create ⇒ Object
- #find(id) ⇒ Object
- #list ⇒ Object
- #remove(id) ⇒ Object (also: #delete)
Methods inherited from Api
Instance Method Details
#create ⇒ Object
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 |
#list ⇒ Object
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 |