Sha256: d80fb9af42ced54bc030fe4c4aa6cd3a75e058a05a3ef2e999064f7ca6533ee0

Contents?: true

Size: 729 Bytes

Versions: 6

Compression:

Stored size: 729 Bytes

Contents

module Absa
  module H2h
    module Transmission
      class Reply < Set
        
        class TransmissionStatus < Record; end
        class TransmissionRejectedReason < Record; end
        class EftStatus < Record; end
        class AcceptedReportReply < Record; end
        class RejectedMessage < Record; end
        
        def self.hash_from_s(string, transmission_type)
          set_info = {type: self.partial_class_name.underscore, data: []}

          string.split(/^/).each do |line|
            if Set.for_record(line, transmission_type) == self
              set_info[:data] << self.process_record(line[0, 198])
            end
          end

          set_info
        end
      
      end      
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
absa-h2h-0.1.2 lib/absa-h2h/reply.rb
absa-h2h-0.1.1 lib/absa-h2h/reply.rb
absa-h2h-0.1.0 lib/absa-h2h/reply.rb
absa-h2h-0.0.13 lib/absa-h2h/reply.rb
absa-h2h-0.0.12 lib/absa-h2h/reply.rb
absa-h2h-0.0.11 lib/absa-h2h/reply.rb