lib/zerobounce/error.rb
# Parse the response for errors.
#
# @param [Hash] env
# @return [Error, nil]
Parse the response for errors.
Parse the response for errors .
def from_response(env)
        case env[:status]
        when 500
          parse500(env)
        when 200
          parse200(env)
        else
          UnknownError.new(env)
        end
      end
def from_response ( env ) case env [ :status ] when 500 parse500 ( env ) when 200 parse200 ( env ) else UnknownError . new ( env ) end end
Parse the response for errors.
Parse the response for errors .
None
Error, nil
env
<not_specific>
<not_specific>
None