Class: AmplitudeExperiment::AssignmentConfig

Inherits:
AmplitudeAnalytics::Config show all
Defined in:
lib/experiment/local/assignment/assignment_config.rb

Overview

AssignmentConfig

Instance Attribute Summary collapse

Attributes inherited from AmplitudeAnalytics::Config

#callback, #flush_interval_millis, #flush_max_retries, #ingestion_metadata, #logger, #min_id_length, #opt_out, #server_zone, #storage_provider, #use_batch

Instance Method Summary collapse

Methods inherited from AmplitudeAnalytics::Config

#flush_queue_size, #flush_queue_size=, #increase_flush_divider, #min_id_length_valid?, #options, #reset_flush_divider, #server_url, #server_url=, #storage, #valid?

Constructor Details

#initialize(api_key, cache_capacity = 65_536, **kwargs) ⇒ AssignmentConfig

Returns a new instance of AssignmentConfig.



6
7
8
9
10
# File 'lib/experiment/local/assignment/assignment_config.rb', line 6

def initialize(api_key, cache_capacity = 65_536, **kwargs)
  super(**kwargs)
  @api_key = api_key
  @cache_capacity = cache_capacity
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/experiment/local/assignment/assignment_config.rb', line 4

def api_key
  @api_key
end

#cache_capacityObject

Returns the value of attribute cache_capacity.



4
5
6
# File 'lib/experiment/local/assignment/assignment_config.rb', line 4

def cache_capacity
  @cache_capacity
end