lib/keymaker/requests/batch_request.rb
module Keymaker
class BatchRequest < Request
def submit
service.post(batch_path, opts).on_error do |response|
case response.status
when (400..499)
raise ClientError.new(response, response.body)
when (500..599)
raise BatchRequestError.new(response, response.body)
end
end
end
end
end