Sha256: 9a6b2911a9a97add0d8b13ec7b10601ae04cf01be84e818aa19afefaa67ae137
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
module MaxCube module Messages module UDP class Parser module MessageN private N_KEYS = %i[ip_address gateway subnet_mask dns1 dns2].freeze KEYS = (Parser::KEYS + N_KEYS).freeze def parse_udp_n(_body) N_KEYS.map do |k| [k, IPAddr.ntop(read(4))] end.to_h 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/n.rb |
maxcube-client-0.4.0 | lib/maxcube/messages/udp/type/n.rb |