class Cassandra::Protocol::SchemaChangeResultResponse

Attributes

arguments[R]
change[R]
keyspace[R]
name[R]
target[R]
type[R]

Public Class Methods

new(custom_payload, warnings, change, keyspace, name, target, arguments, trace_id) click to toggle source
   # File lib/cassandra/protocol/responses/schema_change_result_response.rb
27 def initialize(custom_payload,
28                warnings,
29                change,
30                keyspace,
31                name,
32                target,
33                arguments,
34                trace_id)
35   super(custom_payload, warnings, trace_id)
36 
37   @change    = change
38   @keyspace  = keyspace
39   @name      = name
40   @target    = target
41   @arguments = arguments
42 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
   # File lib/cassandra/protocol/responses/schema_change_result_response.rb
44 def eql?(other)
45   @change == other.change &&
46     @keyspace == other.keyspace &&
47     @name == other.name &&
48     @target == other.target &&
49     @arguments == other.arguments
50 end
Also aliased as: ==
hash() click to toggle source
   # File lib/cassandra/protocol/responses/schema_change_result_response.rb
53 def hash
54   @h ||= begin
55     h = 17
56     h = 31 * h + @change.hash
57     h = 31 * h + @keyspace.hash
58     h = 31 * h + @name.hash
59     h = 31 * h + @target.hash
60     h = 31 * h + @arguments.hash
61     h
62   end
63 end
to_s() click to toggle source
   # File lib/cassandra/protocol/responses/schema_change_result_response.rb
65 def to_s
66   %(RESULT SCHEMA_CHANGE #{@change} #{@target} "#{@keyspace}" "#{@name}")
67 end