new (ActiveMerchant::Billing::AVSResult)

    # File lib/active_merchant/billing/avs_result.rb, line 67
          def initialize(attrs)
            attrs ||= {}

            @code = attrs[:code].upcase unless attrs[:code].blank?
            @message = self.class.messages[code]

            if attrs[:street_match].blank?
              @street_match = STREET_MATCH_CODE[code]
            else
              @street_match = attrs[:street_match].upcase
            end

            if attrs[:postal_match].blank?
              @postal_match = POSTAL_MATCH_CODE[code]
            else
              @postal_match = attrs[:postal_match].upcase
            end
          end