class Eddy::Segments::CTT

### Segment Summary:

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Segment::new
# 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

Public Instance Methods

CTT01=(arg) click to toggle source

### CTT01

  • Id: 354

  • Name: Number of Line Items

  • Type: N0

  • Min/Max: 1/6

  • Description: Total number of line items in the transaction set

@param arg [Integer] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 44
def CTT01=(arg)
  @ctt01.value = arg
end
Also aliased as: NumberOfLineItems=
CTT02=(arg) click to toggle source

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

@param arg [Float] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 59
def CTT02=(arg)
  @ctt02.value = arg
end
Also aliased as: HashTotal=
CTT03=(arg) click to toggle source

### CTT03

  • Id: 81

  • Name: Weight

  • Type: R

  • Min/Max: 1/10

  • Description: Numeric value of weight

@param arg [Float] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 74
def CTT03=(arg)
  @ctt03.value = arg
end
Also aliased as: Weight=
CTT04=(arg) click to toggle source

### 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

@param arg [String] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 89
def CTT04=(arg)
  @ctt04.value = arg
end
CTT05=(arg) click to toggle source

### CTT05

  • Id: 183

  • Name: Volume

  • Type: R

  • Min/Max: 1/8

  • Description: Value of volumetric measure

@param arg [Float] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 104
def CTT05=(arg)
  @ctt05.value = arg
end
Also aliased as: Volume=
CTT06=(arg) click to toggle source

### 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

@param arg [String] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 119
def CTT06=(arg)
  @ctt06.value = arg
end
CTT07=(arg) click to toggle source

### 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

@param arg [String] @return [void]

# File lib/definitions/segments/generated/ctt.rb, line 134
def CTT07=(arg)
  @ctt07.value = arg
end
Also aliased as: Description=
Description=(arg)
Alias for: CTT07=
HashTotal=(arg)
Alias for: CTT02=
NumberOfLineItems=(arg)
Alias for: CTT01=
UnitOrBasisForMeasurementCode1=(arg)
Alias for: CTT04=
UnitOrBasisForMeasurementCode2=(arg)
Alias for: CTT06=
Volume=(arg)
Alias for: CTT05=
Weight=(arg)
Alias for: CTT03=