class Cassandra::Keyspace::Replication
@private
Attributes
klass[R]
options[R]
Public Class Methods
new(klass, options)
click to toggle source
# File lib/cassandra/keyspace.rb 28 def initialize(klass, options) 29 @klass = klass 30 @options = options 31 end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/cassandra/keyspace.rb 40 def eql?(other) 41 other.is_a?(Replication) && 42 @klass == other.klass && 43 @options == other.options 44 end
Also aliased as: ==
to_cql()
click to toggle source
# File lib/cassandra/keyspace.rb 33 def to_cql 34 replication = {'class' => @klass} 35 replication.merge!(@options) 36 37 Util.encode_hash(replication) 38 end