class Eddy::Elements::I14

### Element Summary:

Public Class Methods

new(val: nil, req: nil, ref: nil) click to toggle source

@param val [String] (nil) @param req [String] (nil) @param ref [String] (nil) @return [void]

Calls superclass method Eddy::Models::Element::ID::new
# File lib/definitions/elements/manual/i/I14.usage_indicator.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "I14"
  @name = "Usage Indicator"
  @description = "Code to indicate whether data enclosed by this interchange envelope is test, production or information"
  super(
    min: 1,
    max: 1,
    req: req,
    ref: ref,
    val: val,
  )
end

Public Instance Methods

code_list() click to toggle source

@return [Array<String>]

# File lib/definitions/elements/manual/i/I14.usage_indicator.rb, line 30
def code_list()
  return [
    "I", # Information
    "P", # Production Data
    "T", # Test Data
  ]
end