Class: ESortCode::Response::ValidateCreditCard
- 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_type ⇒ Object
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 |