class EDI::A::StreamingSkimmer

Just an idea - not sure it’s worth an implementation…

Class StreamingSkimmer

The StreamingSkimmer works as a simplified StreamingBuilder. It only skims through the service segements of an interchange and builds an interchange skeleton from them containing just the interchange, group, and message level, but not the regular messages. Thus, all messages are empty and not fit for validation (use class StreamingBuilder to build a complete interchange).

StreamingSkimmer lacks an implementation of callback method on_segment(). The interchange skeletons it produces are thus quicky built and hace a small memory footprint. Customize the class by overwriting on_segment().

Public Instance Methods

on_segment( s, tag ) click to toggle source
# File lib/edi4r/ansi_x12.rb, line 1678
def on_segment( s, tag )
  # Deliberately left empty
end