Class: TestProf::FactoryDefault::Configuration
- Inherits:
-
Object
- Object
- TestProf::FactoryDefault::Configuration
- Defined in:
- lib/test_prof/factory_default.rb
Instance Attribute Summary collapse
-
#preserve_attributes ⇒ Object
Returns the value of attribute preserve_attributes.
-
#preserve_traits ⇒ Object
Returns the value of attribute preserve_traits.
-
#profiling_enabled ⇒ Object
(also: #profiling_enabled?)
Returns the value of attribute profiling_enabled.
-
#report_stats ⇒ Object
Returns the value of attribute report_stats.
-
#report_summary ⇒ Object
Returns the value of attribute report_summary.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_attributes ⇒ Object
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_traits ⇒ Object
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_enabled ⇒ Object 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_stats ⇒ Object
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_summary ⇒ Object
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 |