Class: Cql::Protocol::ReadyResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/cql/protocol/responses/ready_response.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Decoding

#read_byte!, #read_bytes!, #read_consistency!, #read_decimal!, #read_double!, #read_float!, #read_inet!, #read_int!, #read_long!, #read_long_string!, #read_option!, #read_short!, #read_short_bytes!, #read_string!, #read_string_list!, #read_string_map!, #read_string_multimap!, #read_uuid!, #read_varint!

Class Method Details

.decode!(buffer) ⇒ Object



6
7
8
# File 'lib/cql/protocol/responses/ready_response.rb', line 6

def self.decode!(buffer)
  new
end

Instance Method Details

#eql?(rs) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


10
11
12
# File 'lib/cql/protocol/responses/ready_response.rb', line 10

def eql?(rs)
  self.class === rs
end

#hashObject



15
16
17
# File 'lib/cql/protocol/responses/ready_response.rb', line 15

def hash
  @h ||= to_s.hash ^ 0xbadc0de
end

#to_sObject



19
20
21
# File 'lib/cql/protocol/responses/ready_response.rb', line 19

def to_s
  'READY'
end