Class: SharkOnLambda::Middleware::Base
- Inherits:
-
Object
- Object
- SharkOnLambda::Middleware::Base
- Defined in:
- lib/shark_on_lambda/middleware/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call(env) ⇒ Object
- #call!(_env) ⇒ Object
-
#initialize(app = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(app = nil) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/shark_on_lambda/middleware/base.rb', line 8 def initialize(app = nil) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
6 7 8 |
# File 'lib/shark_on_lambda/middleware/base.rb', line 6 def app @app end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 |
# File 'lib/shark_on_lambda/middleware/base.rb', line 12 def call(env) dup.call!(env) end |
#call!(_env) ⇒ Object
16 17 18 |
# File 'lib/shark_on_lambda/middleware/base.rb', line 16 def call!(_env) raise NotImplementedError end |