Class: Tzispa::Controller::Http
- Extended by:
- Forwardable
- Includes:
- Helpers::ErrorView
- Defined in:
- lib/tzispa/controller/http.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#custom_errors ⇒ Object
readonly
Returns the value of attribute custom_errors.
Attributes inherited from Base
#application, #callmethod, #context, #context_class
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, callmethod, context_class = Tzispa::Http::Context, custom_errors = true) ⇒ Http
constructor
A new instance of Http.
Constructor Details
#initialize(app, callmethod, context_class = Tzispa::Http::Context, custom_errors = true) ⇒ Http
Returns a new instance of Http.
17 18 19 20 |
# File 'lib/tzispa/controller/http.rb', line 17 def initialize(app, callmethod, context_class = Tzispa::Http::Context, custom_errors = true) super app, callmethod, context_class @custom_errors = custom_errors end |
Instance Attribute Details
#custom_errors ⇒ Object (readonly)
Returns the value of attribute custom_errors.
14 15 16 |
# File 'lib/tzispa/controller/http.rb', line 14 def custom_errors @custom_errors end |
Instance Method Details
#call(env) ⇒ Object
22 23 24 25 |
# File 'lib/tzispa/controller/http.rb', line 22 def call(env) super response.finish end |