Sha256: 263cdcf940d1db4f74bba9f5fd451e00cccbb97eb70254e7d22e188ec12b6f67
Contents?: true
Size: 260 Bytes
Versions: 2
Compression:
Stored size: 260 Bytes
Contents
module Faker module CreditCard class MasterCard extend Generator PREFIXES = ["51", "52", "53", "54", "55"] LENGTH = 16 def self.number(options = {}) generate_number(PREFIXES.sample, LENGTH) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faker_credit_card-0.0.2 | lib/faker_credit_card/master_card.rb |
faker_credit_card-0.0.1 | lib/faker_credit_card/master_card.rb |