class Cassandra::Protocol::AuthResponseRequest

Attributes

token[R]

Public Class Methods

new(token) click to toggle source
Calls superclass method Cassandra::Protocol::Request::new
   # File lib/cassandra/protocol/requests/auth_response_request.rb
24 def initialize(token)
25   super(0x0f)
26   @token = token
27 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
   # File lib/cassandra/protocol/requests/auth_response_request.rb
37 def eql?(other)
38   token == other.token
39 end
Also aliased as: ==
hash() click to toggle source
   # File lib/cassandra/protocol/requests/auth_response_request.rb
42 def hash
43   @h ||= begin
44     h = 17
45     h = 31 * h + @token.hash
46     h
47   end
48 end
to_s() click to toggle source
   # File lib/cassandra/protocol/requests/auth_response_request.rb
33 def to_s
34   %(AUTH_RESPONSE #{@token.bytesize})
35 end
write(buffer, protocol_version, encoder) click to toggle source
   # File lib/cassandra/protocol/requests/auth_response_request.rb
29 def write(buffer, protocol_version, encoder)
30   buffer.append_bytes(@token)
31 end