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.



183
184
185
186
187
188
189
190
# File 'lib/test_prof/factory_default.rb', line 183

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.



177
178
179
# File 'lib/test_prof/factory_default.rb', line 177

def preserve_attributes
  @preserve_attributes
end

#preserve_traitsObject

Returns the value of attribute preserve_traits.



177
178
179
# File 'lib/test_prof/factory_default.rb', line 177

def preserve_traits
  @preserve_traits
end

#profiling_enabledObject Also known as: profiling_enabled?

Returns the value of attribute profiling_enabled.



177
178
179
# File 'lib/test_prof/factory_default.rb', line 177

def profiling_enabled
  @profiling_enabled
end

#report_statsObject

Returns the value of attribute report_stats.



177
178
179
# File 'lib/test_prof/factory_default.rb', line 177

def report_stats
  @report_stats
end

#report_summaryObject

Returns the value of attribute report_summary.



177
178
179
# File 'lib/test_prof/factory_default.rb', line 177

def report_summary
  @report_summary
end