5 6 7 8 9 10 11 12
# File 'lib/blockscore/response.rb', line 5 def handle_response(resource, response) case response.code when 200, 201 Dispatch.new(resource, response).call else api_error(response) end end