Class: RabbitWQ::Server
- Inherits:
-
Object
- Object
- RabbitWQ::Server
- Includes:
- Logging, Queues, ServerLogging
- Defined in:
- lib/rabbit_wq/server.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#work_consumer ⇒ Object
readonly
Returns the value of attribute work_consumer.
Instance Method Summary collapse
-
#initialize(options) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(options) ⇒ Server
Returns a new instance of Server.
15 16 17 18 19 |
# File 'lib/rabbit_wq/server.rb', line 15 def initialize( ) @options = configure_server end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/rabbit_wq/server.rb', line 11 def @options end |
#work_consumer ⇒ Object (readonly)
Returns the value of attribute work_consumer.
11 12 13 |
# File 'lib/rabbit_wq/server.rb', line 11 def work_consumer @work_consumer end |
Instance Method Details
#start ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/rabbit_wq/server.rb', line 21 def start log_startup run trap( INT ) { finalize; exit } sleep end |