Class: Vidibus::Realm::Rack

Inherits:
Object
  • Object
show all
Defined in:
lib/vidibus/realm/rack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Rack

Returns a new instance of Rack.



8
9
10
# File 'lib/vidibus/realm/rack.rb', line 8

def initialize(app)
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



6
7
8
# File 'lib/vidibus/realm/rack.rb', line 6

def app
  @app
end

#envObject (readonly)

Returns the value of attribute env.



6
7
8
# File 'lib/vidibus/realm/rack.rb', line 6

def env
  @env
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
# File 'lib/vidibus/realm/rack.rb', line 12

def call(env)
  @env = env
  env[:realm] = realm
  app.call(env)
end