Sha256: e1d9483910b2bb69d77cf4173a5c65c6cf58dafa00945e57dacf1028a44f77f5
Contents?: true
Size: 630 Bytes
Versions: 13
Compression:
Stored size: 630 Bytes
Contents
# Credit card #### Rules The rules are for length and prefixes are dynamic based on the provider [view list](https://github.com/drexed/lite-validators/blob/master/lib/lite/validators/credit_card_validator.rb). ```ruby # 1. Length # 2. Prefix # 3. Checksum ``` #### Options Option | Type | Available | Default --- | --- | --- | --- provider | symbol | [view here](https://github.com/drexed/lite-validators/blob/master/lib/lite/validators/credit_card_validator.rb) | all #### Usage ```ruby class User < ActiveRecord::Base validates :input0, credit_card: true validates :input1, credit_card: { provider: :visa } end ```
Version data entries
13 entries across 13 versions & 1 rubygems