Module: Gongren::Worker::Unit

Defined in:
lib/gongren/worker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gongren_header=(value) ⇒ Object (writeonly)

Sets the attribute gongren_header

Parameters:

  • value

    the value to set the attribute gongren_header to.



95
96
97
# File 'lib/gongren/worker.rb', line 95

def gongren_header=(value)
  @gongren_header = value
end

Instance Method Details

#ackObject



97
98
99
100
# File 'lib/gongren/worker.rb', line 97

def ack
  @gongren_header.ack
  @acked = true
end

#acked?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/gongren/worker.rb', line 102

def acked?
  !!@acked
end