Class: Himari::Middlewares::ClaimsRule
- Inherits:
-
Object
- Object
- Himari::Middlewares::ClaimsRule
- Defined in:
- lib/himari/middlewares/claims_rule.rb
Constant Summary collapse
- RACK_KEY =
'himari.claims_rule'
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, kwargs = {}, &block) ⇒ ClaimsRule
constructor
A new instance of ClaimsRule.
Constructor Details
#initialize(app, kwargs = {}, &block) ⇒ ClaimsRule
Returns a new instance of ClaimsRule.
9 10 11 12 13 |
# File 'lib/himari/middlewares/claims_rule.rb', line 9 def initialize(app, kwargs = {}, &block) @app = app @rule = Himari::Rule.new(block: block, **kwargs) @provider = Himari::ItemProviders::Static.new([@rule]) end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
15 16 17 |
# File 'lib/himari/middlewares/claims_rule.rb', line 15 def app @app end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
15 16 17 |
# File 'lib/himari/middlewares/claims_rule.rb', line 15 def client @client end |