Class: Antz::Configuration
- Inherits:
-
Object
- Object
- Antz::Configuration
- Defined in:
- lib/antz/configuration.rb
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/antz/configuration.rb', line 7 def initialize @batch_size = 200 @base_dir = nil @logger = defined?(Rails) ? Rails.logger : Logger.new($stdout) end |
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
5 6 7 |
# File 'lib/antz/configuration.rb', line 5 def base_dir @base_dir end |
#batch_size ⇒ Object
Returns the value of attribute batch_size.
5 6 7 |
# File 'lib/antz/configuration.rb', line 5 def batch_size @batch_size end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/antz/configuration.rb', line 5 def logger @logger end |