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.



93
94
95
# File 'lib/gongren/worker.rb', line 93

def gongren_header=(value)
  @gongren_header = value
end

Instance Method Details

#ackObject



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

def ack
  @gongren_header.ack
  @acked = true
end

#acked?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/gongren/worker.rb', line 100

def acked?
  !!@acked
end