Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Feb 2, 2024
1 parent f7a8207 commit 289a4ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/experiment/factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module AmplitudeExperiment
# Initializes a singleton Client. This method returns a default singleton instance, subsequent calls to
# init will return the initial instance regardless of input.
#
# @param [String] api_key The environment API Key. If a deployment key is provided in the config, it will be used instead.
# @param [String] api_key The Amplitude Project API Key used in the client. If a deployment key is provided in
# the config, it will be used instead.
# @param [Config] config Optional Config.
def self.initialize_remote(api_key, config = nil)
used_key = config&.deployment_key.nil? ? api_key : config.deployment_key
Expand All @@ -18,7 +19,8 @@ def self.initialize_remote(api_key, config = nil)
# user without requiring a remote call to the amplitude evaluation server. In order to best leverage local
# evaluation, all flags, and experiments being evaluated server side should be configured as local.
#
# @param [String] api_key The environment API Key. If a deployment key is provided in the config, it will be used instead.
# @param [String] api_key The Amplitude Project API Key used in the client. If a deployment key is provided in
# the config, it will be used instead.
# @param [Config] config Optional Config.
def self.initialize_local(api_key, config = nil)
used_key = config&.deployment_key.nil? ? api_key : config.deployment_key
Expand Down
2 changes: 1 addition & 1 deletion lib/experiment/local/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocalEvaluationConfig
# @return [AssignmentConfig] the config instance
attr_accessor :assignment_config

# The deployment key for the experiment. If provided, it is used instead of the Project API Key.
# The deployment key for the experiment. If provided, it is used instead of the Amplitude Project API Key.
# @return [String] the value of deployment_key
attr_accessor :deployment_key

Expand Down
2 changes: 1 addition & 1 deletion lib/experiment/remote/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RemoteEvaluationConfig
# @return [Integer] the value of fetch_retry_timeout_millis
attr_accessor :fetch_retry_timeout_millis

# The deployment key for the experiment. If provided, it is used instead of the Project API Key.
# The deployment key for the experiment. If provided, it is used instead of the Amplitude Project API Key.
# @return [String] the value of deployment_key
attr_accessor :deployment_key

Expand Down

0 comments on commit 289a4ab

Please sign in to comment.