Class: Eddy::Elements::E347

Inherits:
Models::Element::R show all
Defined in:
lib/definitions/elements/generated/347.hash_total.rb

Overview

Element Summary:

  • Id: 347
  • Name: Hash Total
  • Type: R
  • Min/Max: 1/10
  • Description: Sum of values of the specified data element. All values in the data element will be summed without regard to decimal points (explicit or implicit) or signs. Truncation will occur on the left most digits if the sum is greater than the maximum size of the hash total of the data element.

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::R

#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 (Float) (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
# File 'lib/definitions/elements/generated/347.hash_total.rb', line 15

def initialize(val: nil, req: nil, ref: nil)
  @id = "347"
  @name = "Hash Total"
  @description = "Sum of values of the specified data element. All values in the data element will be summed without regard to decimal points (explicit or implicit) or signs. Truncation will occur on the left most digits if the sum is greater than the maximum size of the hash total of the data element."
  super(
    min: 1,
    max: 10,
    req: req,
    ref: ref,
    val: val,
  )
end