Class: Faker::Business
- Inherits:
-
Base
- Object
- Base
- Faker::Business
show all
- Defined in:
- lib/faker/default/business.rb
Constant Summary
Constants inherited
from Base
Faker::Base::Letters, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.credit_card_expiry_date ⇒ Object
14
15
16
|
# File 'lib/faker/default/business.rb', line 14
def credit_card_expiry_date
::Date.today + (365 * rand(1..4))
end
|
.credit_card_number ⇒ Object
10
11
12
|
# File 'lib/faker/default/business.rb', line 10
def credit_card_number
fetch('business.credit_card_numbers')
end
|
.credit_card_type ⇒ Object
18
19
20
|
# File 'lib/faker/default/business.rb', line 18
def credit_card_type
fetch('business.credit_card_types')
end
|