Class: Cql::Protocol::OptionsRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/cql/protocol/requests/options_request.rb

Instance Attribute Summary

Attributes inherited from Request

#opcode

Instance Method Summary collapse

Methods inherited from Request

change_stream_id, #encode_frame

Methods included from Encoding

#write_bytes, #write_consistency, #write_decimal, #write_double, #write_float, #write_int, #write_long, #write_long_string, #write_short, #write_short_bytes, #write_string, #write_string_list, #write_string_map, #write_uuid, #write_varint

Constructor Details

#initializeOptionsRequest

Returns a new instance of OptionsRequest.



6
7
8
# File 'lib/cql/protocol/requests/options_request.rb', line 6

def initialize
  super(5)
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/cql/protocol/requests/options_request.rb', line 14

def to_s
  %(OPTIONS)
end

#write(io) ⇒ Object



10
11
12
# File 'lib/cql/protocol/requests/options_request.rb', line 10

def write(io)
  io
end