Class: Buckaruby::Config
- Inherits:
-
Object
- Object
- Buckaruby::Config
- Defined in:
- lib/buckaruby.rb
Overview
Holds the global Buckaruby configuration.
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#logger ⇒ Object
Returns the value of attribute logger.
28 29 30 |
# File 'lib/buckaruby.rb', line 28 def logger @logger end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
28 29 30 |
# File 'lib/buckaruby.rb', line 28 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
28 29 30 |
# File 'lib/buckaruby.rb', line 28 def read_timeout @read_timeout end |