Class: Eddy::Elements::E1232
- Inherits:
-
Models::Element::ID
- Object
- Models::Element::Base
- Models::Element::ID
- Eddy::Elements::E1232
- Defined in:
- lib/definitions/elements/generated/1232.purchase_category.rb
Overview
Element Summary:
- Id: 1232
- Name: Purchase Category
- Type: ID
- Min/Max: 2/2
- Description: Code identifying the broad category of products or services being acquired
Instance Attribute Summary
Attributes inherited from Models::Element::Base
#description, #id, #max, #min, #name, #ref, #type
Instance Method Summary collapse
Methods inherited from Models::Element::ID
#process_value, process_value, #value, #value=
Methods inherited from Models::Element::Base
#doc_comment, #process_value, process_value, #req, #req=, #value, #value=
Constructor Details
#initialize(val: nil, req: nil, ref: nil) ⇒ void
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/definitions/elements/generated/1232.purchase_category.rb', line 16 def initialize(val: nil, req: nil, ref: nil) @id = "1232" @name = "Purchase Category" @description = "Code identifying the broad category of products or services being acquired" super( min: 2, max: 2, req: req, ref: ref, val: val, ) end |
Instance Method Details
#code_list ⇒ Array<String>
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/definitions/elements/generated/1232.purchase_category.rb', line 30 def code_list() return [ "AE", # Architect and Engineering "CN", # Construction "DR", # Demolish, Dismantle or Replace "ER", # Equipment Rental "HW", # Hardware "IR", # Inspect and Repair as Necessary "MD", # Modification "OV", # Overhaul "RD", # Research and Development "RE", # Repair "SB", # Shipbuilding "SP", # Supplies "SU", # Subsistence "SV", # Services "TE", # Test and Evaluation "UT", # Utilities ] end |