Sha256: 32b8f24654bec61e1e09b3ce1c8cdf620ad31b77b7b767c026a619475e1cb719

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

module Eddy
  module Segments
    # ### Segment Summary:
    #
    # - Id: DTM
    # - Name: Date/Time Reference
    # - Purpose: To specify pertinent dates and times.
    class DTM < Eddy::Segment

      # @param store [Eddy::Data::Store]
      # @return [void]
      def initialize(store)
        @id = "DTM"
        @name = "Date/Time Reference"
        @dtm01 = Eddy::Elements::E374.new(ref: "DTM01", req: "M")
        @dtm02 = Eddy::Elements::E373.new(ref: "DTM02", req: "X")
        super(
          store,
          @dtm01,
          @dtm02,
        )
      end

      # ### DTM01
      #
      # - Id: 374
      # - Name: Date/Time Qualifier
      # - Type: ID
      # - Min/Max: 3/3
      # - Description: Code specifying type of date or time, or both date and time
      #
      # @param arg [String]
      # @return [void]
      def DTM01=(arg)
        @dtm01.value = arg
      end
      alias DateTimeQualifier= DTM01=

      # ### DTM02
      #
      # - Id: 373
      # - Name: Date
      # - Type: DT
      # - Min/Max: 8/8
      # - Description: Date expressed as CCYYMMDD
      #
      # @param arg [Time]
      # @return [void]
      def DTM02=(arg)
        @dtm02.value = arg
      end
      alias Date= DTM02=

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/segments/generated/dtm.rb
eddy-0.5.0 lib/definitions/segments/generated/dtm.rb
eddy-0.4.0 lib/definitions/segments/generated/dtm.rb
eddy-0.3.0 lib/definitions/segments/generated/dtm.rb