Class: Spid::Rack
- Inherits:
-
Object
- Object
- Spid::Rack
- Defined in:
- lib/spid/rack.rb,
lib/spid/rack/slo.rb,
lib/spid/rack/sso.rb,
lib/spid/rack/login.rb,
lib/spid/rack/logout.rb,
lib/spid/rack/session.rb,
lib/spid/rack/metadata.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Login, Logout, Metadata, Session, Slo, Sso
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app) ⇒ Rack
Returns a new instance of Rack.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/spid/rack.rb', line 15 def initialize(app) @app = ::Rack::Builder.new do use Spid::Rack::Session use Spid::Rack::Metadata use Spid::Rack::Login use Spid::Rack::Logout use Spid::Rack::Sso use Spid::Rack::Slo run app end end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
13 14 15 |
# File 'lib/spid/rack.rb', line 13 def app @app end |
Instance Method Details
#call(env) ⇒ Object
27 28 29 |
# File 'lib/spid/rack.rb', line 27 def call(env) app.call(env) end |