Class: Eddy::Elements::I14

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/manual/i/I14.usage_indicator.rb

Overview

Element Summary:

  • Id: I14
  • Name: Usage Indicator
  • Type: ID
  • Min/Max: 1/1
  • Description: Code to indicate whether data enclosed by this interchange envelope is test, production or information

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

Parameters:

  • val (String) (defaults to: nil)

    (nil)

  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



16
17
18
19
20
21
22
23
24
25
26
27
# 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

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


30
31
32
33
34
35
36
# 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