class Mockdata::Names
Constants
- BUSINESS_TYPES
- CAR_BRANDS
Contact erik.van.eykelen@bitgain.com if you think I violate a trademark
- COMPANY_NAMES
- FILE_EXTENSIONS
- HOTEL_NAMES
- OCCUPATIONS
- PROJECT_NAMES
Public Class Methods
business_type()
click to toggle source
# File lib/mockdata/names.rb, line 28 def self.business_type BUSINESS_TYPES.sample end
car_brand()
click to toggle source
# File lib/mockdata/names.rb, line 20 def self.car_brand CAR_BRANDS.sample end
company()
click to toggle source
# File lib/mockdata/names.rb, line 24 def self.company COMPANY_NAMES.sample end
file_extension()
click to toggle source
# File lib/mockdata/names.rb, line 36 def self.file_extension FILE_EXTENSIONS.sample end
file_name()
click to toggle source
# File lib/mockdata/names.rb, line 32 def self.file_name "#{Mockdata::Words.one}-#{Mockdata::Words.one}.#{self.file_extension}".downcase end
hotel()
click to toggle source
# File lib/mockdata/names.rb, line 44 def self.hotel HOTEL_NAMES.sample end
occupation()
click to toggle source
# File lib/mockdata/names.rb, line 48 def self.occupation OCCUPATIONS.sample end
project()
click to toggle source
# File lib/mockdata/names.rb, line 40 def self.project PROJECT_NAMES.sample end