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.



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