Module: Fortnox::Default

Defined in:
lib/fortnox/default.rb

Class Method Summary collapse

Class Method Details

.access_tokenObject



8
9
10
# File 'lib/fortnox/default.rb', line 8

def access_token
  ENV['FORTNOX_ACCESS_TOKEN']
end

.authorization_codeObject



20
21
22
# File 'lib/fortnox/default.rb', line 20

def authorization_code
  ENV['FORTNOX_AUTHORIZATION_CODE']
end

.client_idObject



12
13
14
# File 'lib/fortnox/default.rb', line 12

def client_id
  ENV['FORTNOX_CLIENT_ID']
end

.client_secretObject



16
17
18
# File 'lib/fortnox/default.rb', line 16

def client_secret
  ENV['FORTNOX_CLIENT_SECRET']
end

.optionsObject



4
5
6
# File 'lib/fortnox/default.rb', line 4

def options
  Hash[Fortnox::Configurable.keys.map{|key| [key, send(key)]}]
end