Sha256: 0aa0d0d319b11b5141ec6bd8cf4712c0b9015fd86d3d0b093ed7db0325a8d783

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

module LensProtocol
  module OMA
    module Type
      class R < Base
        def parse line, message
          label, values = label_and_values line
          trcfmt = message.context(:last_trcfmt) or return message
          values = Trcfmt.number(trcfmt) == 1 ? values.map(&:to_i) : values
          message.add_record_side_values(label, Trcfmt.side_pos(trcfmt), values)
        end

        def format _record, _message
          [] # Formatted in Type::Trcfmt
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lens_protocol-0.1.3 lib/lens_protocol/oma/type/r.rb