Sha256: bc8789e837f67af88280cc6cf5929475a1fc3fed48424f24c0342736a8d1d33a

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

module MaxCube
  module Messages
    module TCP
      class Serializer
        module MessageU
          private

          KEYS = %i[url port].freeze

          # Command to configure Cube's portal URL
          def serialize_tcp_u(hash)
            "#{hash[:url]}:#{to_int(0, 'port', hash[:port])}"
          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/tcp/type/u.rb
maxcube-client-0.4.0 lib/maxcube/messages/tcp/type/u.rb