Class: DoorkeeperHub::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper_hub/configurator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

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_nameObject

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_modelObject

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_tokenObject

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_modelObject

Returns the value of attribute user_model.



5
6
7
# File 'lib/doorkeeper_hub/configurator.rb', line 5

def user_model
  @user_model
end