Class: Dronejob::Server
- Inherits:
-
Object
- Object
- Dronejob::Server
- Defined in:
- lib/dronejob/server.rb
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
-
#worker ⇒ Object
readonly
Returns the value of attribute worker.
Instance Method Summary collapse
-
#initialize(options) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(options) ⇒ Server
Returns a new instance of Server.
5 6 7 |
# File 'lib/dronejob/server.rb', line 5 def initialize() @queue = .dronejob_queue || "drone" end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
3 4 5 |
# File 'lib/dronejob/server.rb', line 3 def queue @queue end |
#worker ⇒ Object (readonly)
Returns the value of attribute worker.
3 4 5 |
# File 'lib/dronejob/server.rb', line 3 def worker @worker end |