Sha256: da4841caefbc228e48eb26356e6ee1d54dbeabfb826f14224c71ca60f7424dca

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

module MaxCube
  module Messages
    module UDP
      class Parser
        module MessageH
          private

          KEYS = (Parser::KEYS + %i[port url path]).freeze

          def parse_udp_h(_body)
            port = read(2, true)
            url, path = read.split(',')
            {
              port: port,
              url: url,
              path: path,
            }
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maxcube-client-0.4.1 lib/maxcube/messages/udp/type/h.rb
maxcube-client-0.4.0 lib/maxcube/messages/udp/type/h.rb