Class: Htcp::Message::OpData::Clr

Inherits:
Base
  • Object
show all
Defined in:
lib/htcp/message/op_data/clr.rb

Constant Summary collapse

OP_CODE =
4

Instance Method Summary collapse

Methods inherited from Base

#encode_int16, #encode_int32, #encode_int8, #encode_string

Constructor Details

#initialize(params) ⇒ Clr

Returns a new instance of Clr.



7
8
9
# File 'lib/htcp/message/op_data/clr.rb', line 7

def initialize(params)
  @specifier = Htcp::Message::Specifier.new(params)
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/htcp/message/op_data/clr.rb', line 11

def to_s
  encode_int16(0) + @specifier.to_s
end