Class: Eddy::Elements::E354

Inherits:
Models::Element::N show all
Defined in:
lib/definitions/elements/generated/354.number_of_line_items.rb

Overview

Element Summary:

  • Id: 354
  • Name: Number of Line Items
  • Type: N0
  • Min/Max: 1/6
  • Description: Total number of line items in the transaction set

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)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/generated/354.number_of_line_items.rb', line 15

def initialize(val: nil, req: nil, ref: nil)
  @id = "354"
  @name = "Number of Line Items"
  @description = "Total number of line items in the transaction set"
  super(
    min: 1,
    max: 6,
    req: req,
    ref: ref,
    val: val,
    decimals: 0,
  )
end