Class: Eddy::Segments::CTT

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

Overview

Segment Summary:

  • Id: CTT
  • Name: Transaction Totals
  • Purpose: To transmit a hash total for a specific element in the transaction set

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
23
24
25
26
27
28
29
30
31
32
# File 'lib/definitions/segments/generated/ctt.rb', line 12

def initialize(store)
  @id = "CTT"
  @name = "Transaction Totals"
  @ctt01 = Eddy::Elements::E354.new(ref: "CTT01", req: "M")
  @ctt02 = Eddy::Elements::E347.new(ref: "CTT02", req: "O")
  @ctt03 = Eddy::Elements::E81.new(ref: "CTT03", req: "X")
  @ctt04 = Eddy::Elements::E355.new(ref: "CTT04", req: "X")
  @ctt05 = Eddy::Elements::E183.new(ref: "CTT05", req: "X")
  @ctt06 = Eddy::Elements::E355.new(ref: "CTT06", req: "X")
  @ctt07 = Eddy::Elements::E352.new(ref: "CTT07", req: "O")
  super(
    store,
    @ctt01,
    @ctt02,
    @ctt03,
    @ctt04,
    @ctt05,
    @ctt06,
    @ctt07,
  )
end

Instance Method Details

#CTT01=(arg) ⇒ void Also known as: NumberOfLineItems=

This method returns an undefined value.

CTT01

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

Parameters:

  • arg (Integer)


44
45
46
# File 'lib/definitions/segments/generated/ctt.rb', line 44

def CTT01=(arg)
  @ctt01.value = arg
end

#CTT02=(arg) ⇒ void Also known as: HashTotal=

This method returns an undefined value.

CTT02

  • 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.

Parameters:

  • arg (Float)


59
60
61
# File 'lib/definitions/segments/generated/ctt.rb', line 59

def CTT02=(arg)
  @ctt02.value = arg
end

#CTT03=(arg) ⇒ void Also known as: Weight=

This method returns an undefined value.

CTT03

  • Id: 81
  • Name: Weight
  • Type: R
  • Min/Max: 1/10
  • Description: Numeric value of weight

Parameters:

  • arg (Float)


74
75
76
# File 'lib/definitions/segments/generated/ctt.rb', line 74

def CTT03=(arg)
  @ctt03.value = arg
end

#CTT04=(arg) ⇒ void Also known as: UnitOrBasisForMeasurementCode1=

This method returns an undefined value.

CTT04

  • Id: 355
  • Name: Unit or Basis for Measurement Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

Parameters:

  • arg (String)


89
90
91
# File 'lib/definitions/segments/generated/ctt.rb', line 89

def CTT04=(arg)
  @ctt04.value = arg
end

#CTT05=(arg) ⇒ void Also known as: Volume=

This method returns an undefined value.

CTT05

  • Id: 183
  • Name: Volume
  • Type: R
  • Min/Max: 1/8
  • Description: Value of volumetric measure

Parameters:

  • arg (Float)


104
105
106
# File 'lib/definitions/segments/generated/ctt.rb', line 104

def CTT05=(arg)
  @ctt05.value = arg
end

#CTT06=(arg) ⇒ void Also known as: UnitOrBasisForMeasurementCode2=

This method returns an undefined value.

CTT06

  • Id: 355
  • Name: Unit or Basis for Measurement Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

Parameters:

  • arg (String)


119
120
121
# File 'lib/definitions/segments/generated/ctt.rb', line 119

def CTT06=(arg)
  @ctt06.value = arg
end

#CTT07=(arg) ⇒ void Also known as: Description=

This method returns an undefined value.

CTT07

  • Id: 352
  • Name: Description
  • Type: AN
  • Min/Max: 1/80
  • Description: A free-form description to clarify the related data elements and their content

Parameters:

  • arg (String)


134
135
136
# File 'lib/definitions/segments/generated/ctt.rb', line 134

def CTT07=(arg)
  @ctt07.value = arg
end