Class: Eddy::Elements::E329

Inherits:
Models::Element::N show all
Defined in:
lib/definitions/elements/manual/329.transactional_set_control_number.rb

Overview

Element Summary:

  • Id: 329
  • Name: Transaction Set Control Number
  • Type: AN
  • Min/Max: 4/9
  • Description: Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

Notes:

  • Values for this element need to be generated and have their uniqueness ensured.
  • This element inherits from Models::Element::N, even though it is technically an AN.

Instance Attribute Summary

Attributes inherited from Models::Element::N

#decimals

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::N

#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)



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

def initialize(val: nil, req: nil, ref: nil)
  @id = "329"
  @name = "Transaction Set Control Number"
  @description = "Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set"
  super(
    min: 4,
    max: 9,
    req: req,
    ref: ref,
    val: val,
    decimals: 0,
  )
end