Module: CreditCardValidations::Mmi
- Included in:
- Detector
- Defined in:
- lib/credit_card_validations/mmi.rb
Constant Summary collapse
- ISSUER_CATEGORIES =
{ '0' => 'ISO/TC 68 nd other industry assignments', '1' => 'Airlines', '2' => 'Airlines and other industry assignments', '3' => 'Travel and entertainment and banking/financial', '4' => 'Banking and financial', '5' => 'Banking and financial', '6' => 'Merchandising and banking/financial', '7' => 'Petroleum and other industry assignments', '8' => 'Healthcare, telecommunications and other industry assignments', '9' => 'National assignment' }
Instance Method Summary collapse
Instance Method Details
#issuer_category ⇒ Object
39 40 41 |
# File 'lib/credit_card_validations/mmi.rb', line 39 def issuer_category ISSUER_CATEGORIES[@number.to_s[0]] end |