Class: Tzispa::Controller::Http

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Includes:
Helpers::ErrorView
Defined in:
lib/tzispa/controller/http.rb

Direct Known Subclasses

Engine::Rig::Api, Engine::Rig::Layout

Instance Attribute Summary collapse

Attributes inherited from Base

#application, #callmethod, #context, #context_class

Instance Method Summary collapse

Constructor Details

#initialize(app, callmethod, context_class = Tzispa::Http::Context, custom_errors = true) ⇒ Http

Returns a new instance of Http.



19
20
21
22
# File 'lib/tzispa/controller/http.rb', line 19

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_errorsObject (readonly)

Returns the value of attribute custom_errors.



16
17
18
# File 'lib/tzispa/controller/http.rb', line 16

def custom_errors
  @custom_errors
end

Instance Method Details

#call(env) ⇒ Object



24
25
26
27
# File 'lib/tzispa/controller/http.rb', line 24

def call(env)
  super
  response.finish
end