Class: Buckaruby::Config

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

Overview

Holds the global Buckaruby configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



30
31
32
33
34
# File 'lib/buckaruby.rb', line 30

def initialize
  @logger = defined?(Rails) ? Rails.logger : Logger.new($stdout)
  @open_timeout = 30
  @read_timeout = 30
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



28
29
30
# File 'lib/buckaruby.rb', line 28

def logger
  @logger
end

#open_timeoutObject

Returns the value of attribute open_timeout.



28
29
30
# File 'lib/buckaruby.rb', line 28

def open_timeout
  @open_timeout
end

#read_timeoutObject

Returns the value of attribute read_timeout.



28
29
30
# File 'lib/buckaruby.rb', line 28

def read_timeout
  @read_timeout
end