Class: ConfigCat::AutoPollingMode

Inherits:
PollingMode show all
Defined in:
lib/configcat/pollingmode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_secondsObject (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_secondsObject (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

#identifierObject



40
41
42
# File 'lib/configcat/pollingmode.rb', line 40

def identifier
  return "a"
end