Class: FactoryHelper::Business

Inherits:
Base
  • Object
show all
Defined in:
lib/factory-helper/business.rb

Constant Summary

Constants inherited from Base

FactoryHelper::Base::Letters, FactoryHelper::Base::Numbers, FactoryHelper::Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate

Class Method Details

.credit_card_expiry_dateObject



13
14
15
# File 'lib/factory-helper/business.rb', line 13

def credit_card_expiry_date
  ::Date.parse(fetch('business.credit_card_expiry_dates'))
end

.credit_card_numberObject



9
10
11
# File 'lib/factory-helper/business.rb', line 9

def credit_card_number
  fetch('business.credit_card_numbers')
end

.credit_card_typeObject



17
18
19
# File 'lib/factory-helper/business.rb', line 17

def credit_card_type
  fetch('business.credit_card_types')
end