Module: Fortnox::Default
- Defined in:
- lib/fortnox/default.rb
Class Method Summary collapse
- .access_token ⇒ Object
- .authorization_code ⇒ Object
- .client_id ⇒ Object
- .client_secret ⇒ Object
- .options ⇒ Object
Class Method Details
.access_token ⇒ Object
8 9 10 |
# File 'lib/fortnox/default.rb', line 8 def access_token ENV['FORTNOX_ACCESS_TOKEN'] end |
.authorization_code ⇒ Object
20 21 22 |
# File 'lib/fortnox/default.rb', line 20 def ENV['FORTNOX_AUTHORIZATION_CODE'] end |
.client_id ⇒ Object
12 13 14 |
# File 'lib/fortnox/default.rb', line 12 def client_id ENV['FORTNOX_CLIENT_ID'] end |
.client_secret ⇒ Object
16 17 18 |
# File 'lib/fortnox/default.rb', line 16 def client_secret ENV['FORTNOX_CLIENT_SECRET'] end |
.options ⇒ Object
4 5 6 |
# File 'lib/fortnox/default.rb', line 4 def Hash[Fortnox::Configurable.keys.map{|key| [key, send(key)]}] end |