Class: DoorkeeperHub::Configurator
- Inherits:
-
Object
- Object
- DoorkeeperHub::Configurator
- Defined in:
- lib/doorkeeper_hub/configurator.rb
Instance Attribute Summary collapse
-
#doorkeeper_token_name ⇒ Object
Returns the value of attribute doorkeeper_token_name.
-
#scope_model ⇒ Object
Returns the value of attribute scope_model.
-
#service_token ⇒ Object
Returns the value of attribute service_token.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize ⇒ Configurator
Returns a new instance of Configurator.
8 9 10 11 12 13 |
# File 'lib/doorkeeper_hub/configurator.rb', line 8 def initialize self.service_token = ENV["SERVICE_TOKEN"] self.scope_model = ::Company self.user_model = ::User self.doorkeeper_token_name = :doorkeeper_token end |
Instance Attribute Details
#doorkeeper_token_name ⇒ Object
Returns the value of attribute doorkeeper_token_name.
6 7 8 |
# File 'lib/doorkeeper_hub/configurator.rb', line 6 def doorkeeper_token_name @doorkeeper_token_name end |
#scope_model ⇒ Object
Returns the value of attribute scope_model.
4 5 6 |
# File 'lib/doorkeeper_hub/configurator.rb', line 4 def scope_model @scope_model end |
#service_token ⇒ Object
Returns the value of attribute service_token.
3 4 5 |
# File 'lib/doorkeeper_hub/configurator.rb', line 3 def service_token @service_token end |
#user_model ⇒ Object
Returns the value of attribute user_model.
5 6 7 |
# File 'lib/doorkeeper_hub/configurator.rb', line 5 def user_model @user_model end |