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

#batch_sizeObject



8
9
10
# File 'lib/usda_nutrient_database/configuration.rb', line 8

def batch_size
  @batch_size ||= 10000
end

#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

#usda_versionObject



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

Returns:

  • (Boolean)


16
17
18
# File 'lib/usda_nutrient_database/configuration.rb', line 16

def perform_logging?
  @perform_logging ||= false
end