Class: Beez::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/beez/configuration.rb', line 3

def env
  @env
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/beez/configuration.rb', line 3

def logger
  @logger
end

#requireObject

Returns the value of attribute require.



3
4
5
# File 'lib/beez/configuration.rb', line 3

def require
  @require
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/beez/configuration.rb', line 3

def timeout
  @timeout
end

#zeebe_urlObject

Returns the value of attribute zeebe_url.



3
4
5
# File 'lib/beez/configuration.rb', line 3

def zeebe_url
  @zeebe_url
end