Class: Spid::Rack

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#appObject (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