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

Instance Method Details

#access_grant_classObject

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_classObject

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_classObject

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_classObject

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_validatorObject

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_generatorObject

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