Class: EcfDgii::PollingOptions
- Inherits:
-
Object
- Object
- EcfDgii::PollingOptions
- Defined in:
- lib/ecf_dgii/polling.rb
Instance Attribute Summary collapse
-
#backoff_multiplier ⇒ Object
Returns the value of attribute backoff_multiplier.
-
#initial_delay ⇒ Object
Returns the value of attribute initial_delay.
-
#max_delay ⇒ Object
Returns the value of attribute max_delay.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(initial_delay: 2.0, max_delay: 30.0, max_retries: 0, backoff_multiplier: 1.5, timeout: 300.0) ⇒ PollingOptions
constructor
A new instance of PollingOptions.
Constructor Details
#initialize(initial_delay: 2.0, max_delay: 30.0, max_retries: 0, backoff_multiplier: 1.5, timeout: 300.0) ⇒ PollingOptions
Returns a new instance of PollingOptions.
9 10 11 12 13 14 15 |
# File 'lib/ecf_dgii/polling.rb', line 9 def initialize(initial_delay: 2.0, max_delay: 30.0, max_retries: 0, backoff_multiplier: 1.5, timeout: 300.0) @initial_delay = initial_delay @max_delay = max_delay @max_retries = max_retries @backoff_multiplier = backoff_multiplier @timeout = timeout end |
Instance Attribute Details
#backoff_multiplier ⇒ Object
Returns the value of attribute backoff_multiplier.
7 8 9 |
# File 'lib/ecf_dgii/polling.rb', line 7 def backoff_multiplier @backoff_multiplier end |
#initial_delay ⇒ Object
Returns the value of attribute initial_delay.
7 8 9 |
# File 'lib/ecf_dgii/polling.rb', line 7 def initial_delay @initial_delay end |
#max_delay ⇒ Object
Returns the value of attribute max_delay.
7 8 9 |
# File 'lib/ecf_dgii/polling.rb', line 7 def max_delay @max_delay end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
7 8 9 |
# File 'lib/ecf_dgii/polling.rb', line 7 def max_retries @max_retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/ecf_dgii/polling.rb', line 7 def timeout @timeout end |