Class: ActiveRecordDataLoader::DataFaker::NoGemAdapter

Inherits:
Object
  • Object
show all
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

Instance Method Details

#company_nameObject



88
89
90
# File 'lib/active_record_data_loader/data_faker.rb', line 88

def company_name
  "Acme"
end

#first_nameObject



72
73
74
# File 'lib/active_record_data_loader/data_faker.rb', line 72

def first_name
  FIRST_NAMES.sample
end

#last_nameObject



80
81
82
# File 'lib/active_record_data_loader/data_faker.rb', line 80

def last_name
  LAST_NAMES.sample
end

#middle_nameObject



76
77
78
# File 'lib/active_record_data_loader/data_faker.rb', line 76

def middle_name
  MIDDLE_NAMES.sample
end

#person_nameObject



84
85
86
# File 'lib/active_record_data_loader/data_faker.rb', line 84

def person_name
  "#{first_name} #{middle_name} #{last_name}"
end