Class: Capybara::Rumpelstiltskin::Configuration
- Inherits:
-
Object
- Object
- Capybara::Rumpelstiltskin::Configuration
- Defined in:
- lib/capybara/rumpelstiltskin/configuration.rb
Overview
Responsible for managing the configuration of Capybara::Rumpelstiltskin
Instance Attribute Summary collapse
-
#handled_exceptions ⇒ Object
Returns the value of attribute handled_exceptions.
-
#sleep_durations ⇒ Object
Used to determine the number of sleeps to attempt, and the duration of each of those sleeps.
Instance Method Summary collapse
-
#initialize(**kargs) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(**kargs) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/capybara/rumpelstiltskin/configuration.rb', line 7 def initialize(**kargs) self.sleep_durations = kargs.fetch(:sleep_durations) { [3, 10] } self.handled_exceptions = kargs.fetch(:handled_exceptions) { [] } end |
Instance Attribute Details
#handled_exceptions ⇒ Object
Returns the value of attribute handled_exceptions.
12 13 14 |
# File 'lib/capybara/rumpelstiltskin/configuration.rb', line 12 def handled_exceptions @handled_exceptions end |
#sleep_durations ⇒ Object
Used to determine the number of sleeps to attempt, and the duration of each of those sleeps.
16 17 18 |
# File 'lib/capybara/rumpelstiltskin/configuration.rb', line 16 def sleep_durations @sleep_durations end |