Module: Believer::Connection::ClassMethods
- Defined in:
- lib/believer/connection.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
14 15 16 |
# File 'lib/believer/connection.rb', line 14 def connection @client_connection ||= environment.create_connection(:connect_to_keyspace => true) end |
#reset_connection ⇒ Object
7 8 9 10 11 12 |
# File 'lib/believer/connection.rb', line 7 def reset_connection unless connection.nil? connection.close @client_connection = nil end end |