Class: Desiru::Assertions::Configuration
- Inherits:
-
Object
- Object
- Desiru::Assertions::Configuration
- Defined in:
- lib/desiru/assertions.rb
Overview
Configuration for assertion behavior
Instance Attribute Summary collapse
-
#assertion_retry_delay ⇒ Object
Returns the value of attribute assertion_retry_delay.
-
#log_assertions ⇒ Object
Returns the value of attribute log_assertions.
-
#max_assertion_retries ⇒ Object
Returns the value of attribute max_assertion_retries.
-
#track_assertion_metrics ⇒ Object
Returns the value of attribute track_assertion_metrics.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
47 48 49 50 51 52 |
# File 'lib/desiru/assertions.rb', line 47 def initialize @max_assertion_retries = 3 @assertion_retry_delay = 0.1 # seconds @log_assertions = true @track_assertion_metrics = false end |
Instance Attribute Details
#assertion_retry_delay ⇒ Object
Returns the value of attribute assertion_retry_delay.
45 46 47 |
# File 'lib/desiru/assertions.rb', line 45 def assertion_retry_delay @assertion_retry_delay end |
#log_assertions ⇒ Object
Returns the value of attribute log_assertions.
45 46 47 |
# File 'lib/desiru/assertions.rb', line 45 def log_assertions @log_assertions end |
#max_assertion_retries ⇒ Object
Returns the value of attribute max_assertion_retries.
45 46 47 |
# File 'lib/desiru/assertions.rb', line 45 def max_assertion_retries @max_assertion_retries end |
#track_assertion_metrics ⇒ Object
Returns the value of attribute track_assertion_metrics.
45 46 47 |
# File 'lib/desiru/assertions.rb', line 45 def track_assertion_metrics @track_assertion_metrics end |