Class: Faker::Construction

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/construction.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.heavy_equipmentString

Produces a random heavy equipment.

Examples:

Faker::Construction.heavy_equipment #=> "Excavator"

Returns:

  • (String)

Available since:

  • 1.9.2



27
28
29
# File 'lib/faker/default/construction.rb', line 27

def self.heavy_equipment
  fetch('construction.heavy_equipment')
end

.materialString

Produces a random material.

Examples:

Faker::Construction.material #=> "Wood"

Returns:

  • (String)

Available since:

  • 1.9.2



14
15
16
# File 'lib/faker/default/construction.rb', line 14

def self.material
  fetch('construction.materials')
end

.roleString

Produces a random role.

Examples:

Faker::Construction.role #=> "Engineer"

Returns:

  • (String)

Available since:

  • 1.9.2



79
80
81
# File 'lib/faker/default/construction.rb', line 79

def self.role
  fetch('construction.roles')
end

.standard_cost_codeString

Produces a random standard cost code.

Examples:

Faker::Construction.standard_cost_code #=> "1-000 - Purpose"

Returns:

  • (String)

Available since:

  • 1.9.2



66
67
68
# File 'lib/faker/default/construction.rb', line 66

def self.standard_cost_code
  fetch('construction.standard_cost_codes')
end

.subcontract_categoryString

Produces a random subcontract category.

Examples:

Faker::Construction.subcontract_category #=> "Curb & Gutter"

Returns:

  • (String)

Available since:

  • 1.9.2



53
54
55
# File 'lib/faker/default/construction.rb', line 53

def self.subcontract_category
  fetch('construction.subcontract_categories')
end

.tradeString

Produces a random trade.

Examples:

Faker::Construction.trade #=> "Carpenter"

Returns:

  • (String)

Available since:

  • 1.9.2



40
41
42
# File 'lib/faker/default/construction.rb', line 40

def self.trade
  fetch('construction.trades')
end