Class: Trelloid::TaskRunner
- Inherits:
-
Object
- Object
- Trelloid::TaskRunner
- Includes:
- Celluloid
- Defined in:
- lib/trelloid.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
readonly
Returns the value of attribute card.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
Instance Attribute Details
#card ⇒ Object (readonly)
Returns the value of attribute card.
96 97 98 |
# File 'lib/trelloid.rb', line 96 def card @card end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
96 97 98 |
# File 'lib/trelloid.rb', line 96 def task @task end |
Instance Method Details
#run(task, card) ⇒ Object
98 99 100 101 |
# File 'lib/trelloid.rb', line 98 def run(task, card) assign_instance_variables(task, card) instance_eval(&task.proc) end |