/usr/lib/ruby/vendor_ruby/faker/business.rb is in ruby-faker 1.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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
|