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