Module: MaxCube::Messages::UDP::Parser::MessageH

Defined in:
lib/maxcube/messages/udp/type/h.rb

Overview

Get URL information message.

Constant Summary

KEYS =

Mandatory keys.

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

Instance Method Summary collapse

Instance Method Details

#parse_udp_h(_body) ⇒ Object (private)



13
14
15
16
17
18
19
20
21
# File 'lib/maxcube/messages/udp/type/h.rb', line 13

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