Class: Trelloid::TaskRunner

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/trelloid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cardObject (readonly)

Returns the value of attribute card.



96
97
98
# File 'lib/trelloid.rb', line 96

def card
  @card
end

#taskObject (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