Class: LeveretAuth::Strategies::BaseStrategy
- Inherits:
-
Object
- Object
- LeveretAuth::Strategies::BaseStrategy
show all
- Defined in:
- lib/leveret_auth/strategies/base_strategy.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseStrategy.
14
15
16
17
18
|
# File 'lib/leveret_auth/strategies/base_strategy.rb', line 14
def initialize(params)
permitted_attrs.each do |key|
instance_variable_set("@#{key}", params[key])
end
end
|
Class Method Details
.config ⇒ Object
5
6
7
|
# File 'lib/leveret_auth/strategies/base_strategy.rb', line 5
def config
@config ||= {}
end
|
9
10
11
|
# File 'lib/leveret_auth/strategies/base_strategy.rb', line 9
def configure(configuration)
@config = configuration
end
|
Instance Method Details
#authenticate! ⇒ Object
20
21
22
|
# File 'lib/leveret_auth/strategies/base_strategy.rb', line 20
def authenticate!
raise 'Must implement the method: `authenticate!`'
end
|