Class: Requeus::Server
- Inherits:
-
Object
- Object
- Requeus::Server
- Defined in:
- lib/requeus/server.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
readonly
delegate :put, :get, :confirm, :to => :connection.
-
#name ⇒ Object
readonly
delegate :put, :get, :confirm, :to => :connection.
Instance Method Summary collapse
-
#initialize(name, conf) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(name, conf) ⇒ Server
Returns a new instance of Server.
20 21 22 23 24 |
# File 'lib/requeus/server.rb', line 20 def initialize name, conf @name = name @connection = self.class.adapters[conf['adapter']].new(conf) @interval = conf['interval'].to_f end |
Instance Attribute Details
#interval ⇒ Object (readonly)
delegate :put, :get, :confirm,
:to => :connection
29 30 31 |
# File 'lib/requeus/server.rb', line 29 def interval @interval end |
#name ⇒ Object (readonly)
delegate :put, :get, :confirm,
:to => :connection
29 30 31 |
# File 'lib/requeus/server.rb', line 29 def name @name end |