Class: Grape::Middleware::Auth::StrategyInfo
- Inherits:
-
Struct
- Object
- Struct
- Grape::Middleware::Auth::StrategyInfo
- Defined in:
- lib/grape/middleware/auth/strategy_info.rb
Instance Attribute Summary collapse
-
#auth_class ⇒ Object
Returns the value of attribute auth_class.
-
#settings_fetcher ⇒ Object
Returns the value of attribute settings_fetcher.
Instance Method Summary collapse
Instance Attribute Details
#auth_class ⇒ Object
Returns the value of attribute auth_class
6 7 8 |
# File 'lib/grape/middleware/auth/strategy_info.rb', line 6 def auth_class @auth_class end |
#settings_fetcher ⇒ Object
Returns the value of attribute settings_fetcher
6 7 8 |
# File 'lib/grape/middleware/auth/strategy_info.rb', line 6 def settings_fetcher @settings_fetcher end |
Instance Method Details
#create(app, options, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/grape/middleware/auth/strategy_info.rb', line 7 def create(app, , &block) strategy_args = settings_fetcher.call() auth_class.new(app, *strategy_args, &block) end |