Sha256: 355ebd2854e724dbe75cc9a13a12fad65ef33d41472ee4a2395fd541707e1cae

Contents?: true

Size: 371 Bytes

Versions: 19

Compression:

Stored size: 371 Bytes

Contents

require 'date'

module Faker
  class Business < Base
    flexible :business

    class << self
      def credit_card_number
        fetch('business.credit_card_numbers')
      end

      def credit_card_expiry_date
        ::Date.today + (365 * (rand(4) + 1))
      end

      def credit_card_type
        fetch('business.credit_card_types')
      end
    end

  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
faker-1.8.7 lib/faker/business.rb
faker-1.8.6 lib/faker/business.rb
faker-1.8.5 lib/faker/business.rb
faker-1.8.4 lib/faker/business.rb
faker-1.8.3 lib/faker/business.rb
faker-1.8.2 lib/faker/business.rb
faker-1.8.0 lib/faker/business.rb
faker-1.7.3 lib/faker/business.rb
faker-1.7.2 lib/faker/business.rb
faker-1.7.1 lib/faker/business.rb
faker-1.6.6 lib/faker/business.rb
faker-1.6.5 lib/faker/business.rb
faker-1.6.4 lib/faker/business.rb
faker-1.6.3 lib/faker/business.rb
faker-1.6.2 lib/faker/business.rb
faker-1.6.1 lib/faker/business.rb
faker-1.6.0 lib/faker/business.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/faker-1.5.0/lib/faker/business.rb
faker-1.5.0 lib/faker/business.rb