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
13 14 15 16 17 18 19 20 |
# File 'lib/rubykiq/connection.rb', line 13 def initialize( = {}) url = .delete(:url) { determine_redis_provider } namespace = .delete(:namespace) driver = .delete(:driver) @redis_connection = initialize_conection(url, namespace, driver) @redis_client = @redis_connection.client @redis_connection end |