class Cql::Protocol::SchemaChangeResultResponse
Attributes
change[R]
keyspace[R]
table[R]
Public Class Methods
decode(protocol_version, buffer, length, trace_id=nil)
click to toggle source
# File lib/cql/protocol/responses/schema_change_result_response.rb, line 13 def self.decode(protocol_version, buffer, length, trace_id=nil) new(buffer.read_string, buffer.read_string, buffer.read_string, trace_id) end
new(change, keyspace, table, trace_id)
click to toggle source
Calls superclass method
Cql::Protocol::ResultResponse::new
# File lib/cql/protocol/responses/schema_change_result_response.rb, line 8 def initialize(change, keyspace, table, trace_id) super(trace_id) @change, @keyspace, @table = change, keyspace, table end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/cql/protocol/responses/schema_change_result_response.rb, line 17 def eql?(other) self.change == other.change && self.keyspace == other.keyspace && self.table == other.table end
Also aliased as: ==
hash()
click to toggle source
# File lib/cql/protocol/responses/schema_change_result_response.rb, line 22 def hash @h ||= begin h = 0 h = ((h & 0xffffffff) * 31) ^ @change.hash h = ((h & 0xffffffff) * 31) ^ @keyspace.hash h = ((h & 0xffffffff) * 31) ^ @table.hash h end end
to_s()
click to toggle source
# File lib/cql/protocol/responses/schema_change_result_response.rb, line 32 def to_s %(RESULT SCHEMA_CHANGE #@change "#@keyspace" "#@table") end