Sha256: 4ebf9d6f5b46bd3e862f5c9418a74b17749f62d45416ad7f0b0429e767b45817

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

module Faker
  module CreditCard
    class DinnersClub
      extend Generator

      PREFIXES = ["300", "301", "302", "303", "304", "305", "36", "38"]
      LENGTH   = 14

      def self.number(options = {})
        generate_number(PREFIXES.sample, LENGTH)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faker_credit_card-0.0.1 lib/faker_credit_card/dinners_club.rb