lib/minfraud/error_handler.rb
# Returns a response if status code is 200, rises an error otherwise
# @param [Minfraud::HTTPService::Response] response
# @return [Minfraud::HTTPService::Response] if status code is 200
Returns a response if status code is 200, rises an error otherwise
Returns a response if status code is 200 rises an error otherwise
def inspect(response)
        return response if response.status == 200
        raise *STATUS_CODES.fetch(response.code, [ServerError, 'Server error'])
      end
def inspect ( response ) return response if response . status == 200 raise * STATUS_CODES . fetch ( response . code , [ ServerError , 'Server error' ] ) end
Returns a response if status code is 200, rises an error otherwise
Returns a response if status code is 200 rises an error otherwise
if status code is 200
if status code is 200
Minfraud::HTTPService::Response
response
<not_specific>
<not_specific>
None