Class: Rubykiq::Connection
- Inherits:
-
Object
- Object
- Rubykiq::Connection
- Extended by:
- Forwardable
- Defined in:
- lib/rubykiq/connection.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Connection
constructor
Initialize a new Connection object.
Constructor Details
#initialize(options = {}) ⇒ Connection
Initialize a new Connection object
15 16 17 18 19 20 21 22 |
# File 'lib/rubykiq/connection.rb', line 15 def initialize( = {}) url = .delete(:url) { determine_redis_provider } namespace = .delete(:namespace) driver = .delete(:driver) @redis_connection ||= build_conection(url, namespace, driver) @redis_client ||= @redis_connection.client return @redis_connection end |