Module: CreditCardValidations
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/credit_card_validations.rb,
lib/credit_card_validations/mmi.rb,
lib/credit_card_validations/luhn.rb,
lib/credit_card_validations/version.rb,
lib/credit_card_validations/detector.rb,
lib/credit_card_validations/card_rules.rb
Defined Under Namespace
Modules: CardRules, Mmi Classes: Detector, Luhn
Constant Summary collapse
- VERSION =
"1.5.1"
Class Method Summary collapse
Class Method Details
.add_rule(name, options) ⇒ Object
15 16 17 |
# File 'lib/credit_card_validations.rb', line 15 def self.add_rule(name, ) CreditCardValidations::Detector.add_rule(name, .fetch(:length), .fetch(:prefixes), .fetch(:skip_luhn, false)) end |