Class: ESortCode::Response::ValidateCreditCard

Inherits:
Base
  • Object
show all
Defined in:
lib/esortcode/response/validate_credit_card.rb

Instance Method Summary collapse

Methods inherited from Base

#error, #error!, #has_error?, #initialize, #invalid_message, #valid?

Constructor Details

This class inherits a constructor from ESortCode::Response::Base

Instance Method Details

#card_typeObject



4
5
6
7
8
9
10
11
# File 'lib/esortcode/response/validate_credit_card.rb', line 4

def card_type
  unless @card_type
    t = @xml.get_text('ValidationCC/CardType')
    @card_type = t && t.to_s
  end
  
  @card_type
end