Class: Eddy::Segments::AMT

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/amt.rb

Overview

Segment Summary:

  • Id: AMT
  • Name: Monetary Amount Information
  • Purpose: To indicate the total monetary amount.

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/definitions/segments/generated/amt.rb', line 12

def initialize(store)
  @id = "AMT"
  @name = "Monetary Amount Information"
  @amt01 = Eddy::Elements::E522.new(ref: "AMT01", req: "M")
  @amt02 = Eddy::Elements::E782.new(ref: "AMT02", req: "M")
  super(
    store,
    @amt01,
    @amt02,
  )
end

Instance Method Details

#AMT01=(arg) ⇒ void Also known as: AmountQualifierCode=

This method returns an undefined value.

AMT01

  • Id: 522
  • Name: Amount Qualifier Code
  • Type: ID
  • Min/Max: 1/3
  • Description: Code to qualify amount

Parameters:

  • arg (String)


34
35
36
# File 'lib/definitions/segments/generated/amt.rb', line 34

def AMT01=(arg)
  @amt01.value = arg
end

#AMT02=(arg) ⇒ void Also known as: MonetaryAmount=

This method returns an undefined value.

AMT02

  • Id: 782
  • Name: Monetary Amount
  • Type: R
  • Min/Max: 1/18
  • Description: Monetary amount

Parameters:

  • arg (Float)


49
50
51
# File 'lib/definitions/segments/generated/amt.rb', line 49

def AMT02=(arg)
  @amt02.value = arg
end