lib/sepa/response.rb
# Validates response code in response. "00" and "24" are currently considered valid.
Validates response code in response. "00" and "24" are currently considered valid.
Validates response code in response . " 00 " and " 24 " are currently considered valid .
def validate_response_code
        return if %w(00 24).include? response_code
        errors.add(:base, response_code: response_code, response_text: response_text)
      end
def validate_response_code return if %w( 00 24 ) . include? response_code errors . add ( :base , response_code : response_code , response_text : response_text ) end
Validates response code in response.
Validates response code in response .