Class: Beez::Configuration
- Inherits:
-
Object
- Object
- Beez::Configuration
- Defined in:
- lib/beez/configuration.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#require ⇒ Object
Returns the value of attribute require.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#zeebe_url ⇒ Object
Returns the value of attribute zeebe_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/beez/configuration.rb', line 5 def initialize @env = ENV['APP_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' @logger = Logger.new($stdout) @require = '.' @timeout = 30 @zeebe_url = ENV['ZEEBE_URL'] || 'localhost:26500' end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
3 4 5 |
# File 'lib/beez/configuration.rb', line 3 def env @env end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/beez/configuration.rb', line 3 def logger @logger end |
#require ⇒ Object
Returns the value of attribute require.
3 4 5 |
# File 'lib/beez/configuration.rb', line 3 def require @require end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/beez/configuration.rb', line 3 def timeout @timeout end |
#zeebe_url ⇒ Object
Returns the value of attribute zeebe_url.
3 4 5 |
# File 'lib/beez/configuration.rb', line 3 def zeebe_url @zeebe_url end |