Class: Warden::OAuth2::Configuration
- Inherits:
-
Object
- Object
- Warden::OAuth2::Configuration
- Defined in:
- lib/warden/oauth2.rb
Instance Attribute Summary collapse
-
#client_model ⇒ Object
Returns the value of attribute client_model.
-
#token_model ⇒ Object
Returns the value of attribute token_model.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/warden/oauth2.rb', line 9 def initialize self.client_model = ClientApplication if defined?(ClientApplication) self.token_model = AccessToken if defined?(AccessToken) end |
Instance Attribute Details
#client_model ⇒ Object
Returns the value of attribute client_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def client_model @client_model end |
#token_model ⇒ Object
Returns the value of attribute token_model.
7 8 9 |
# File 'lib/warden/oauth2.rb', line 7 def token_model @token_model end |