Class: Helpstation::SuccessObserver

Inherits:
Observer
  • Object
show all
Defined in:
lib/helpstation/observer.rb

Class Method Summary collapse

Methods inherited from Observer

#initialize

Constructor Details

This class inherits a constructor from Helpstation::Observer

Class Method Details

.call(response) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Perform the observer when the response is successful

Parameters:

  • the (Substation::Response)

    response returned when calling the action



43
44
45
# File 'lib/helpstation/observer.rb', line 43

def self.call(response)
  super if response.success?
end