Class: BambooId::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/bamboo_id/configuration.rb

Constant Summary collapse

@@redirect_url =
nil

Class Method Summary collapse

Class Method Details

.application_keyObject



13
14
15
# File 'lib/bamboo_id/configuration.rb', line 13

def self.application_key
  ENV['BAMBOO_APPLICATION_KEY']
end

.client_idObject



17
18
19
# File 'lib/bamboo_id/configuration.rb', line 17

def self.client_id
  ENV['BAMBOO_CLIENT_ID']
end

.client_secretObject



21
22
23
# File 'lib/bamboo_id/configuration.rb', line 21

def self.client_secret
  ENV['BAMBOO_CLIENT_SECRET']
end

.redirect_urlObject



5
6
7
# File 'lib/bamboo_id/configuration.rb', line 5

def self.redirect_url
  @@redirect_url || raise('No redirect_url set')
end

.redirect_url=(url) ⇒ Object



9
10
11
# File 'lib/bamboo_id/configuration.rb', line 9

def self.redirect_url=(url)
  @@redirect_url = url
end