Class: Requeus::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/requeus/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#intervalObject (readonly)

delegate :put, :get, :confirm,

:to => :connection


29
30
31
# File 'lib/requeus/server.rb', line 29

def interval
  @interval
end

#nameObject (readonly)

delegate :put, :get, :confirm,

:to => :connection


29
30
31
# File 'lib/requeus/server.rb', line 29

def name
  @name
end