Method: Faker::Vehicle.standard_specs

Defined in:
lib/faker/default/vehicle.rb

.standard_specsArray<String>

Produces a random list of standard specs.

Examples:

Faker::Vehicle.standard_specs #=> ["Full-size spare tire w/aluminum alloy wheel", "Back-up camera", "Carpeted cargo area", "Silver accent IP trim finisher -inc: silver shifter finisher", "Back-up camera", "Water-repellent windshield & front door glass", "Floor carpeting"]

Returns:

  • (Array<String>)

Available since:

  • 1.6.4



220
221
222
# File 'lib/faker/default/vehicle.rb', line 220

def standard_specs
  Array.new(rand(5...10)) { fetch('vehicle.standard_specs') }
end