Module: MaxCube::Messages::TCP::Serializer::MessageU

Defined in:
lib/maxcube/messages/tcp/type/u.rb

Overview

Command to configure Cube's portal URL

Constant Summary

KEYS =

Mandatory hash keys.

%i[url port].freeze

Instance Method Summary collapse

Instance Method Details

#serialize_tcp_u(hash) ⇒ Object (private)



13
14
15
# File 'lib/maxcube/messages/tcp/type/u.rb', line 13

def serialize_tcp_u(hash)
  "#{hash[:url]}:#{to_int(0, 'port', hash[:port])}"
end