Module: BatchRequestApi::BatchSequential
Instance Method Summary collapse
Methods included from BatchUtil
#build_response, #get_payload, #setup_env
Instance Method Details
#batch_sequential(env) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/batch_request_api/batch_sequential.rb', line 7 def batch_sequential(env) requests = get_payload(env) responses = requests.map do |item| process_request(env.deep_dup, item) end build_response(response_hash(responses)) end |