Class: Rack::Putty::Router::ExtractParams
- Inherits:
-
Object
- Object
- Rack::Putty::Router::ExtractParams
- Defined in:
- lib/rack-putty/router/extract_params.rb
Instance Attribute Summary collapse
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, pattern, keys) ⇒ ExtractParams
constructor
A new instance of ExtractParams.
Constructor Details
#initialize(app, pattern, keys) ⇒ ExtractParams
Returns a new instance of ExtractParams.
9 10 11 |
# File 'lib/rack-putty/router/extract_params.rb', line 9 def initialize(app, pattern, keys) @app, @pattern, @keys = app, pattern, keys end |
Instance Attribute Details
#keys ⇒ Object
Returns the value of attribute keys.
7 8 9 |
# File 'lib/rack-putty/router/extract_params.rb', line 7 def keys @keys end |
#pattern ⇒ Object
Returns the value of attribute pattern.
7 8 9 |
# File 'lib/rack-putty/router/extract_params.rb', line 7 def pattern @pattern end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 |
# File 'lib/rack-putty/router/extract_params.rb', line 13 def call(env) add_request(env) extract_params(env) @app.call(env) end |