Module: Gongren::Worker::Unit
- Defined in:
- lib/gongren/worker.rb
Instance Attribute Summary collapse
-
#gongren_header ⇒ Object
writeonly
Sets the attribute gongren_header.
Instance Method Summary collapse
Instance Attribute Details
#gongren_header=(value) ⇒ Object (writeonly)
Sets the attribute gongren_header
93 94 95 |
# File 'lib/gongren/worker.rb', line 93 def gongren_header=(value) @gongren_header = value end |
Instance Method Details
#ack ⇒ Object
95 96 97 98 |
# File 'lib/gongren/worker.rb', line 95 def ack @gongren_header.ack @acked = true end |
#acked? ⇒ Boolean
100 101 102 |
# File 'lib/gongren/worker.rb', line 100 def acked? !!@acked end |