lib/clicksign/api/documents_signers.rb in clicksign-api-1.1.3.alpha vs lib/clicksign/api/documents_signers.rb in clicksign-api-1.1.4.alpha
- old
+ new
@@ -15,14 +15,12 @@
body(params),
token
)
end
- def batch_create(token:, params:)
- params = params.transform_keys(&:to_sym)
-
- params[:batch].map do |single_params|
- create(token: token, params: single_params)
+ def batch_create(token:, batch:)
+ batch.map do |params|
+ create(token: token, params: params)
end
end
def body(params)
params = params.transform_keys(&:to_sym)