Module: Ruzbx::Configuration
- Defined in:
- lib/ruzbx/configuration.rb
Overview
TODO
Class Method Summary collapse
Class Method Details
.debug ⇒ Object
30 31 32 33 34 |
# File 'lib/ruzbx/configuration.rb', line 30 def self.debug return false unless ENV.include?('RUZBX_DEBUG') ENV['RUZBX_DEBUG'].match?(/^true$/) end |
.password ⇒ Object
12 13 14 15 16 |
# File 'lib/ruzbx/configuration.rb', line 12 def self.password return ENV['RUZBX_PASSWORD'] if ENV.include?('RUZBX_PASSWORD') raise 'The environment variable RUZBX_PASSWORD is not set' end |
.token ⇒ Object
18 19 20 21 22 |
# File 'lib/ruzbx/configuration.rb', line 18 def self.token return ENV['RUZBX_TOKEN'] if ENV.include?('RUZBX_TOKEN') raise 'The environment variable RUZBX_TOKEN is not set' end |
.url ⇒ Object
24 25 26 27 28 |
# File 'lib/ruzbx/configuration.rb', line 24 def self.url return ENV['RUZBX_URL'] if ENV.include?('RUZBX_URL') 'http://localhost:8080' end |
.username ⇒ Object
6 7 8 9 10 |
# File 'lib/ruzbx/configuration.rb', line 6 def self.username return ENV['RUZBX_USERNAME'] if ENV.include?('RUZBX_USERNAME') raise 'The environment variable RUZBX_USERNAME is not set' end |