Method: ActiveMerchant::Billing::OrbitalGateway::AVSResult#initialize
- Defined in:
- lib/active_merchant/billing/gateways/orbital.rb
#initialize(code) ⇒ AVSResult
Returns a new instance of AVSResult.
1247 1248 1249 1250 1251 1252 1253 1254 |
# File 'lib/active_merchant/billing/gateways/orbital.rb', line 1247 def initialize(code) @code = (code.blank? ? nil : code.to_s.strip.upcase) if @code @message = CODES[@code] @postal_match = ORBITAL_POSTAL_MATCH_CODE[@code] @street_match = ORBITAL_STREET_MATCH_CODE[@code] end end |