Class: Helpstation::ErrorObserver

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 not successful

Parameters:

  • the (Substation::Response)

    response returned when calling the action



55
56
57
# File 'lib/helpstation/observer.rb', line 55

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