Class: ConfigCat::AutoPollingMode
- Inherits:
-
PollingMode
- Object
- PollingMode
- ConfigCat::AutoPollingMode
- Defined in:
- lib/configcat/pollingmode.rb
Instance Attribute Summary collapse
-
#max_init_wait_time_seconds ⇒ Object
readonly
Returns the value of attribute max_init_wait_time_seconds.
-
#poll_interval_seconds ⇒ Object
readonly
Returns the value of attribute poll_interval_seconds.
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(poll_interval_seconds, max_init_wait_time_seconds) ⇒ AutoPollingMode
constructor
A new instance of AutoPollingMode.
Methods inherited from PollingMode
auto_poll, lazy_load, manual_poll
Constructor Details
#initialize(poll_interval_seconds, max_init_wait_time_seconds) ⇒ AutoPollingMode
Returns a new instance of AutoPollingMode.
35 36 37 38 |
# File 'lib/configcat/pollingmode.rb', line 35 def initialize(poll_interval_seconds, max_init_wait_time_seconds) @poll_interval_seconds = poll_interval_seconds @max_init_wait_time_seconds = max_init_wait_time_seconds end |
Instance Attribute Details
#max_init_wait_time_seconds ⇒ Object (readonly)
Returns the value of attribute max_init_wait_time_seconds.
33 34 35 |
# File 'lib/configcat/pollingmode.rb', line 33 def max_init_wait_time_seconds @max_init_wait_time_seconds end |
#poll_interval_seconds ⇒ Object (readonly)
Returns the value of attribute poll_interval_seconds.
33 34 35 |
# File 'lib/configcat/pollingmode.rb', line 33 def poll_interval_seconds @poll_interval_seconds end |
Instance Method Details
#identifier ⇒ Object
40 41 42 |
# File 'lib/configcat/pollingmode.rb', line 40 def identifier return "a" end |