module FFaker::Vehicle
Constants
- CYLINDERS
- DRIVETRAINS
- TRANSMISSIONS_ABBR
- YEARS
Public Instance Methods
base_color()
click to toggle source
# File lib/ffaker/vehicle.rb, line 75 def base_color FFaker::Color.name end
drivetrain()
click to toggle source
# File lib/ffaker/vehicle.rb, line 79 def drivetrain fetch_sample(DRIVETRAINS) end
engine_cylinders()
click to toggle source
# File lib/ffaker/vehicle.rb, line 117 def engine_cylinders fetch_sample(CYLINDERS) end
engine_displacement()
click to toggle source
# File lib/ffaker/vehicle.rb, line 121 def engine_displacement fetch_sample(DISPLACEMENTS_LIST) end
fuel_type()
click to toggle source
# File lib/ffaker/vehicle.rb, line 125 def fuel_type fetch_sample(FUEL_TYPES_LIST) end
interior_upholstery()
click to toggle source
# File lib/ffaker/vehicle.rb, line 129 def interior_upholstery fetch_sample(UPHOLSTERY_LIST) end
make()
click to toggle source
# File lib/ffaker/vehicle.rb, line 83 def make fetch_sample(MAKES_LIST) end
manufacturer_color(count = 2)
click to toggle source
# File lib/ffaker/vehicle.rb, line 87 def manufacturer_color(count = 2) # Take two prefixes because it's more fun than one (fetch_sample(COLOR_PREFIXES, count: count) + [base_color]).join(' ') end
Also aliased as: mfg_color
model()
click to toggle source
# File lib/ffaker/vehicle.rb, line 93 def model fetch_sample(MODELS_LIST) end
transmission()
click to toggle source
# File lib/ffaker/vehicle.rb, line 109 def transmission fetch_sample(TRANSMISSIONS_LIST) end
transmission_abbr()
click to toggle source
# File lib/ffaker/vehicle.rb, line 113 def transmission_abbr fetch_sample(TRANSMISSIONS_ABBR) end
trim()
click to toggle source
# File lib/ffaker/vehicle.rb, line 97 def trim fetch_sample(TRIMS_LIST) end
vin()
click to toggle source
# File lib/ffaker/vehicle.rb, line 101 def vin VIN.vin end
year()
click to toggle source
# File lib/ffaker/vehicle.rb, line 105 def year fetch_sample(YEARS) end