Class: Eddy::Elements::I13

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

Overview

Element Summary:

  • Id: I13
  • Name: Acknowledgment Requested
  • Type: ID
  • Min/Max: 1/1
  • Description: Code sent by the sender to request an interchange acknowledgment (TA1)

Notes:

  • Default value: "0"

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: "0", req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: "0")

    ("0")

  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/definitions/elements/manual/i/I13.acknowledgment_requested.rb', line 20

def initialize(val: "0", req: nil, ref: nil)
  @id = "I13"
  @name = "Acknowledgment Requested"
  @description = "Code sent by the sender to request an interchange acknowledgment (`TA1`)"
  super(
    min: 1,
    max: 1,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


34
35
36
37
38
39
# File 'lib/definitions/elements/manual/i/I13.acknowledgment_requested.rb', line 34

def code_list()
  return [
    "0", # No Acknowledgment Requested
    "1", # Interchange Acknowledgment Requested
  ]
end