Class: RuleQueue::QueueEntry
- Inherits:
-
Object
- Object
- RuleQueue::QueueEntry
- Defined in:
- lib/cirrocumulus/rule_queue.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#run_at ⇒ Object
readonly
Returns the value of attribute run_at.
-
#run_data ⇒ Object
readonly
Returns the value of attribute run_data.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(run_data, run_at = nil) ⇒ QueueEntry
constructor
A new instance of QueueEntry.
Constructor Details
#initialize(run_data, run_at = nil) ⇒ QueueEntry
Returns a new instance of QueueEntry.
11 12 13 14 15 16 17 |
# File 'lib/cirrocumulus/rule_queue.rb', line 11 def initialize(run_data, run_at = nil) @run_data = run_data @rule = run_data.rule @params = run_data.parameters @run_at = run_at @state = :queued end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/cirrocumulus/rule_queue.rb', line 7 def params @params end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
6 7 8 |
# File 'lib/cirrocumulus/rule_queue.rb', line 6 def rule @rule end |
#run_at ⇒ Object (readonly)
Returns the value of attribute run_at.
8 9 10 |
# File 'lib/cirrocumulus/rule_queue.rb', line 8 def run_at @run_at end |
#run_data ⇒ Object (readonly)
Returns the value of attribute run_data.
5 6 7 |
# File 'lib/cirrocumulus/rule_queue.rb', line 5 def run_data @run_data end |
#state ⇒ Object
Returns the value of attribute state.
9 10 11 |
# File 'lib/cirrocumulus/rule_queue.rb', line 9 def state @state end |