Class: Eddy::Elements::E28

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

Overview

Element Summary:

  • Id: 28
  • Name: Group Control Number
  • Type: N0
  • Min/Max: 1/9
  • Description: Assigned number originated and maintained by the sender

Notes:

  • Values for this element need to be generated and have their uniqueness ensured.

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 (Integer) (defaults to: nil)

    (nil)

  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



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

def initialize(val: nil, req: nil, ref: nil)
  @id = "28"
  @name = "Group Control Number"
  @description = "Assigned number originated and maintained by the sender"
  super(
    min: 1,
    max: 9,
    req: req,
    ref: ref,
    val: val,
    decimals: 0,
  )
end