class Cassandra::Protocol::SchemaChangeEventResponse
Constants
- TYPE
Attributes
arguments[R]
change[R]
keyspace[R]
name[R]
target[R]
Public Class Methods
new(change, keyspace, name, target, arguments)
click to toggle source
# File lib/cassandra/protocol/responses/schema_change_event_response.rb 29 def initialize(change, keyspace, name, target, arguments) 30 @change = change 31 @keyspace = keyspace 32 @name = name 33 @target = target 34 @arguments = arguments 35 end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/cassandra/protocol/responses/schema_change_event_response.rb 41 def eql?(other) 42 other.is_a?(SchemaChangeEventResponse) && other.type == TYPE && 43 @change == other.change && 44 @keyspace == other.keyspace && 45 @name == other.name && 46 @target == other.target && 47 @arguments == other.arguments 48 end
Also aliased as: ==
hash()
click to toggle source
# File lib/cassandra/protocol/responses/schema_change_event_response.rb 51 def hash 52 @h ||= begin 53 h = 17 54 h = 31 * h + @change.hash 55 h = 31 * h + @keyspace.hash 56 h = 31 * h + @name.hash 57 h = 31 * h + @target.hash 58 h = 31 * h + @arguments.hash 59 h 60 end 61 end
to_s()
click to toggle source
# File lib/cassandra/protocol/responses/schema_change_event_response.rb 63 def to_s 64 if @arguments 65 %(EVENT SCHEMA_CHANGE #{@change} #{@target} "#{@keyspace}" "#{@name}" ) \ 66 "#{@arguments}" 67 else 68 %(EVENT SCHEMA_CHANGE #{@change} #{@target} "#{@keyspace}" "#{@name}") 69 end 70 end
type()
click to toggle source
# File lib/cassandra/protocol/responses/schema_change_event_response.rb 37 def type 38 TYPE 39 end