Class: Helpstation::Observer
- Inherits:
-
Object
- Object
- Helpstation::Observer
- Includes:
- AbstractType
- Defined in:
- lib/helpstation/observer.rb
Direct Known Subclasses
Class Method Summary collapse
-
.call(response) ⇒ Object
private
Perform the observer.
Instance Method Summary collapse
-
#initialize(response) ⇒ Observer
constructor
A new instance of Observer.
Constructor Details
#initialize(response) ⇒ Observer
Returns a new instance of Observer.
15 16 17 18 19 20 21 |
# File 'lib/helpstation/observer.rb', line 15 def initialize(response) @response = response @env = response.env @input = response.input @output = response.output @request = response.request end |
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
11 12 13 |
# File 'lib/helpstation/observer.rb', line 11 def self.call(response) new(response).call end |