Class: Optimizely::Helpers::OptimizelySdkSettings
- Inherits:
-
Object
- Object
- Optimizely::Helpers::OptimizelySdkSettings
- Defined in:
- lib/optimizely/helpers/sdk_settings.rb
Instance Attribute Summary collapse
-
#fetch_segments_timeout ⇒ Object
Returns the value of attribute fetch_segments_timeout.
-
#odp_disabled ⇒ Object
Returns the value of attribute odp_disabled.
-
#odp_event_manager ⇒ Object
Returns the value of attribute odp_event_manager.
-
#odp_event_timeout ⇒ Object
Returns the value of attribute odp_event_timeout.
-
#odp_flush_interval ⇒ Object
Returns the value of attribute odp_flush_interval.
-
#odp_segment_manager ⇒ Object
Returns the value of attribute odp_segment_manager.
-
#odp_segments_cache ⇒ Object
Returns the value of attribute odp_segments_cache.
-
#segments_cache_size ⇒ Object
Returns the value of attribute segments_cache_size.
-
#segments_cache_timeout_in_secs ⇒ Object
Returns the value of attribute segments_cache_timeout_in_secs.
Instance Method Summary collapse
-
#initialize(disable_odp: false, segments_cache_size: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_CAPACITY], segments_cache_timeout_in_secs: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_TIMEOUT_SECONDS], odp_segments_cache: nil, odp_segment_manager: nil, odp_event_manager: nil, odp_segment_request_timeout: nil, odp_event_request_timeout: nil, odp_event_flush_interval: nil) ⇒ OptimizelySdkSettings
constructor
Contains configuration used for Optimizely Project initialization.
Constructor Details
#initialize(disable_odp: false, segments_cache_size: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_CAPACITY], segments_cache_timeout_in_secs: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_TIMEOUT_SECONDS], odp_segments_cache: nil, odp_segment_manager: nil, odp_event_manager: nil, odp_segment_request_timeout: nil, odp_event_request_timeout: nil, odp_event_flush_interval: nil) ⇒ OptimizelySdkSettings
Contains configuration used for Optimizely Project initialization.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 38 def initialize( disable_odp: false, segments_cache_size: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_CAPACITY], segments_cache_timeout_in_secs: Constants::ODP_SEGMENTS_CACHE_CONFIG[:DEFAULT_TIMEOUT_SECONDS], odp_segments_cache: nil, odp_segment_manager: nil, odp_event_manager: nil, odp_segment_request_timeout: nil, odp_event_request_timeout: nil, odp_event_flush_interval: nil ) @odp_disabled = disable_odp @segments_cache_size = segments_cache_size @segments_cache_timeout_in_secs = segments_cache_timeout_in_secs @odp_segments_cache = odp_segments_cache @odp_segment_manager = odp_segment_manager @odp_event_manager = odp_event_manager @fetch_segments_timeout = odp_segment_request_timeout @odp_event_timeout = odp_event_request_timeout @odp_flush_interval = odp_event_flush_interval end |
Instance Attribute Details
#fetch_segments_timeout ⇒ Object
Returns the value of attribute fetch_segments_timeout.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def fetch_segments_timeout @fetch_segments_timeout end |
#odp_disabled ⇒ Object
Returns the value of attribute odp_disabled.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_disabled @odp_disabled end |
#odp_event_manager ⇒ Object
Returns the value of attribute odp_event_manager.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_event_manager @odp_event_manager end |
#odp_event_timeout ⇒ Object
Returns the value of attribute odp_event_timeout.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_event_timeout @odp_event_timeout end |
#odp_flush_interval ⇒ Object
Returns the value of attribute odp_flush_interval.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_flush_interval @odp_flush_interval end |
#odp_segment_manager ⇒ Object
Returns the value of attribute odp_segment_manager.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_segment_manager @odp_segment_manager end |
#odp_segments_cache ⇒ Object
Returns the value of attribute odp_segments_cache.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def odp_segments_cache @odp_segments_cache end |
#segments_cache_size ⇒ Object
Returns the value of attribute segments_cache_size.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def segments_cache_size @segments_cache_size end |
#segments_cache_timeout_in_secs ⇒ Object
Returns the value of attribute segments_cache_timeout_in_secs.
24 25 26 |
# File 'lib/optimizely/helpers/sdk_settings.rb', line 24 def segments_cache_timeout_in_secs @segments_cache_timeout_in_secs end |