Class: TaskObserver
- Inherits:
-
Object
- Object
- TaskObserver
- Defined in:
- app/observers/task_observer.rb
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task) ⇒ TaskObserver
constructor
A new instance of TaskObserver.
- #status_change(_old_value, _new_value) ⇒ Object
Constructor Details
#initialize(task) ⇒ TaskObserver
Returns a new instance of TaskObserver.
6 7 8 |
# File 'app/observers/task_observer.rb', line 6 def initialize(task) @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
4 5 6 |
# File 'app/observers/task_observer.rb', line 4 def task @task end |
Instance Method Details
#status_change(_old_value, _new_value) ⇒ Object
10 |
# File 'app/observers/task_observer.rb', line 10 def status_change(_old_value, _new_value); end |