Class: AgentC::Processor::Handler
- Inherits:
-
Data
- Object
- Data
- AgentC::Processor::Handler
- Defined in:
- lib/agent_c/processor.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
Instance Attribute Details
#handler ⇒ Object (readonly)
Returns the value of attribute handler
5 6 7 |
# File 'lib/agent_c/processor.rb', line 5 def handler @handler end |
#task ⇒ Object (readonly)
Returns the value of attribute task
5 6 7 |
# File 'lib/agent_c/processor.rb', line 5 def task @task end |
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 |
# File 'lib/agent_c/processor.rb', line 6 def call handler.call(task) if task.pending? raise "Task Pending error" end end |