Class: UsdaNutrientDatabase::Configuration
- Inherits:
-
Object
- Object
- UsdaNutrientDatabase::Configuration
- Defined in:
- lib/usda_nutrient_database/configuration.rb
Instance Attribute Summary collapse
-
#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
#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
15 16 17 |
# File 'lib/usda_nutrient_database/configuration.rb', line 15 def usda_version @usda_version || 'sr28' end |
Instance Method Details
#perform_logging? ⇒ Boolean
11 12 13 |
# File 'lib/usda_nutrient_database/configuration.rb', line 11 def perform_logging? @perform_logging ||= false end |