Class: ActiveRecordDataLoader::DataFaker::NoGemAdapter
- Inherits:
-
Object
- Object
- ActiveRecordDataLoader::DataFaker::NoGemAdapter
- Defined in:
- lib/active_record_data_loader/data_faker.rb
Constant Summary collapse
- FIRST_NAMES =
%w[John Mary].freeze
- MIDDLE_NAMES =
%w[Madison Ashley].freeze
- LAST_NAMES =
%w[Doe Smith].freeze
Instance Method Summary collapse
- #company_name ⇒ Object
- #first_name ⇒ Object
- #last_name ⇒ Object
- #middle_name ⇒ Object
- #person_name ⇒ Object
Instance Method Details
#company_name ⇒ Object
88 89 90 |
# File 'lib/active_record_data_loader/data_faker.rb', line 88 def company_name "Acme" end |
#first_name ⇒ Object
72 73 74 |
# File 'lib/active_record_data_loader/data_faker.rb', line 72 def first_name FIRST_NAMES.sample end |
#last_name ⇒ Object
80 81 82 |
# File 'lib/active_record_data_loader/data_faker.rb', line 80 def last_name LAST_NAMES.sample end |
#middle_name ⇒ Object
76 77 78 |
# File 'lib/active_record_data_loader/data_faker.rb', line 76 def middle_name MIDDLE_NAMES.sample end |
#person_name ⇒ Object
84 85 86 |
# File 'lib/active_record_data_loader/data_faker.rb', line 84 def person_name "#{first_name} #{middle_name} #{last_name}" end |