Module: Simple::OAuth2::ClassAccessors
- Included in:
- Configuration
- Defined in:
- lib/simple_oauth2/configuration/class_accessors.rb
Overview
Simple::OAuth2 accessors for configured classes.
Instance Method Summary collapse
-
#access_grant_class ⇒ Object
Returns Access Grant class by configured name.
-
#access_token_class ⇒ Object
Returns Access Token class by configured name.
-
#client_class ⇒ Object
Returns Client class by configured name.
-
#resource_owner_class ⇒ Object
Returns Resource Owner class by configured name.
-
#scopes_validator ⇒ Object
Returns Scopes Validator class by configured name.
-
#token_generator ⇒ Object
Returns Token Generator class by configured name.
Instance Method Details
#access_grant_class ⇒ Object
Returns Access Grant class by configured name
21 22 23 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 21 def access_grant_class @access_grant_class ||= access_grant_class_name.constantize end |
#access_token_class ⇒ Object
Returns Access Token class by configured name
6 7 8 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 6 def access_token_class @access_token_class ||= access_token_class_name.constantize end |
#client_class ⇒ Object
Returns Client class by configured name
16 17 18 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 16 def client_class @client_class ||= client_class_name.constantize end |
#resource_owner_class ⇒ Object
Returns Resource Owner class by configured name
11 12 13 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 11 def resource_owner_class @resource_owner_class ||= resource_owner_class_name.constantize end |
#scopes_validator ⇒ Object
Returns Scopes Validator class by configured name
31 32 33 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 31 def scopes_validator scopes_validator_class_name.constantize end |
#token_generator ⇒ Object
Returns Token Generator class by configured name
26 27 28 |
# File 'lib/simple_oauth2/configuration/class_accessors.rb', line 26 def token_generator token_generator_class_name.constantize end |