Method: Keymaker::BatchRequest#submit

Defined in:
lib/keymaker/requests/batch_request.rb

#submitObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/keymaker/requests/batch_request.rb', line 5

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