Class: UsdaNutrientDatabase::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

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

Parameters:

  • value

    the value to set the attribute perform_logging to.



4
5
6
# File 'lib/usda_nutrient_database/configuration.rb', line 4

def perform_logging=(value)
  @perform_logging = value
end

Instance Method Details

#perform_logging?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/usda_nutrient_database/configuration.rb', line 10

def perform_logging?
  @perform_logging ||= false
end