Module: CassandraObject::Consistency::ClassMethods

Defined in:
lib/cassandra_object/consistency.rb

Instance Method Summary collapse

Instance Method Details

#with_consistency(consistency) ⇒ Object



6
7
8
9
10
11
# File 'lib/cassandra_object/consistency.rb', line 6

def with_consistency(consistency)
  previous, self.default_consistency = default_consistency, consistency
  yield
ensure
  self.default_consistency = previous
end