File: construction.rb

package info (click to toggle)
ruby-faker 2.21.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,076 kB
  • sloc: ruby: 19,088; makefile: 6
file content (83 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# frozen_string_literal: true

module Faker
  class Construction < Base
    ##
    # Produces a random material.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.material #=> "Wood"
    #
    # @faker.version 1.9.2
    def self.material
      fetch('construction.materials')
    end

    ##
    # Produces a random heavy equipment.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.heavy_equipment #=> "Excavator"
    #
    # @faker.version 1.9.2
    def self.heavy_equipment
      fetch('construction.heavy_equipment')
    end

    ##
    # Produces a random trade.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.trade #=> "Carpenter"
    #
    # @faker.version 1.9.2
    def self.trade
      fetch('construction.trades')
    end

    ##
    # Produces a random subcontract category.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.subcontract_category #=> "Curb & Gutter"
    #
    # @faker.version 1.9.2
    def self.subcontract_category
      fetch('construction.subcontract_categories')
    end

    ##
    # Produces a random standard cost code.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.standard_cost_code #=> "1-000 - Purpose"
    #
    # @faker.version 1.9.2
    def self.standard_cost_code
      fetch('construction.standard_cost_codes')
    end

    ##
    # Produces a random role.
    #
    # @return [String]
    #
    # @example
    #   Faker::Construction.role #=> "Engineer"
    #
    # @faker.version 1.9.2
    def self.role
      fetch('construction.roles')
    end
  end
end