Class: TaskObserver

Inherits:
Object
  • Object
show all
Defined in:
app/observers/task_observer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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