Class: UsdaNutrientDatabase::Configuration
- Inherits:
-
Object
- Object
- UsdaNutrientDatabase::Configuration
- Defined in:
- lib/usda_nutrient_database/configuration.rb
Instance Attribute Summary collapse
- #batch_size ⇒ Object
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#perform_logging ⇒ Object
writeonly
Sets the attribute perform_logging.
- #usda_version ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#batch_size ⇒ Object
8 9 10 |
# File 'lib/usda_nutrient_database/configuration.rb', line 8 def batch_size @batch_size ||= 10000 end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/usda_nutrient_database/configuration.rb', line 3 def logger @logger end |
#perform_logging=(value) ⇒ Object (writeonly)
Sets the attribute perform_logging
4 5 6 |
# File 'lib/usda_nutrient_database/configuration.rb', line 4 def perform_logging=(value) @perform_logging = value end |
#usda_version ⇒ Object
20 21 22 |
# File 'lib/usda_nutrient_database/configuration.rb', line 20 def usda_version @usda_version || 'sr28' end |
Instance Method Details
#perform_logging? ⇒ Boolean
16 17 18 |
# File 'lib/usda_nutrient_database/configuration.rb', line 16 def perform_logging? @perform_logging ||= false end |