Sha256: 8ec96d56031057131eb918c3d0c58caeff8292c3db1eb0e670366f055ac5f8ce

Contents?: true

Size: 923 Bytes

Versions: 1

Compression:

Stored size: 923 Bytes

Contents

module Eddy
  # Interchange / Document / Envelope / Group / File
  class TransactionSet
    # @return [Integer]
    attr_accessor :code
    # @return [String]
    attr_accessor :functional_group
    # @return [String]
    attr_accessor :description
    # @return [Array<Segment>]
    attr_accessor :segments
    # Time value for use by DT/TM Elements.
    # @return [Time]
    attr_accessor :time
    # Component Element Separator
    # (defaults to `">"`)
    # @return [String]
    attr_accessor :component_separator
    # (defaults to `"~"`)
    # @return [String]
    attr_accessor :segment_separator
    # Data Element Separator
    # (defaults to `"*"`)
    # @return [String]
    attr_accessor :element_separator

    # @return [void]
    def initialize()
      self.time = Time.now().utc()
      self.component_separator = ">"
      self.segment_separator = "~"
      self.element_separator = "*"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eddy-0.1.0 lib/eddy/transaction_set.rb