Class: TestProf::FactoryDefault::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/factory_default.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



156
157
158
159
160
161
162
163
# File 'lib/test_prof/factory_default.rb', line 156

def initialize
  # TODO(v2): Switch to true
  @preserve_traits = false
  @preserve_attributes = false
  @profiling_enabled = ENV["FACTORY_DEFAULT_PROF"] == "1"
  @report_summary = ENV["FACTORY_DEFAULT_SUMMARY"] == "1"
  @report_stats = ENV["FACTORY_DEFAULT_STATS"] == "1"
end

Instance Attribute Details

#preserve_attributesObject

Returns the value of attribute preserve_attributes.



150
151
152
# File 'lib/test_prof/factory_default.rb', line 150

def preserve_attributes
  @preserve_attributes
end

#preserve_traitsObject

Returns the value of attribute preserve_traits.



150
151
152
# File 'lib/test_prof/factory_default.rb', line 150

def preserve_traits
  @preserve_traits
end

#profiling_enabledObject Also known as: profiling_enabled?

Returns the value of attribute profiling_enabled.



150
151
152
# File 'lib/test_prof/factory_default.rb', line 150

def profiling_enabled
  @profiling_enabled
end

#report_statsObject

Returns the value of attribute report_stats.



150
151
152
# File 'lib/test_prof/factory_default.rb', line 150

def report_stats
  @report_stats
end

#report_summaryObject

Returns the value of attribute report_summary.



150
151
152
# File 'lib/test_prof/factory_default.rb', line 150

def report_summary
  @report_summary
end