Module: CassandraMapper::Connection

Included in:
Base
Defined in:
lib/cassandra_mapper/connection.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



6
7
8
# File 'lib/cassandra_mapper/connection.rb', line 6

def connection
  @connection || self.class.connection
end

#connection=(conn) ⇒ Object



2
3
4
# File 'lib/cassandra_mapper/connection.rb', line 2

def connection=(conn)
  @connection = conn
end