Class: Clicksign::Batch
- Inherits:
-
Base
- Object
- Base
- Clicksign::Batch
show all
- Defined in:
- lib/clicksign/batch.rb
Class Method Summary
collapse
Methods inherited from Base
accept_header, api_url, parse, request
Class Method Details
.all ⇒ Object
3
4
5
6
7
|
# File 'lib/clicksign/batch.rb', line 3
def self.all
request :get,
api_url('batches'),
{}
end
|
.create(keys) ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/clicksign/batch.rb', line 9
def self.create(keys)
raise ArgumentError, "keys need to be an array" unless keys.is_a? Array
request :post,
api_url('batches'),
{ keys: keys },
{}
end
|
.delete(id) ⇒ Object
18
19
20
21
22
|
# File 'lib/clicksign/batch.rb', line 18
def self.delete(id)
request :delete,
api_url('batches', id),
{}
end
|