class Optimizely::StaticProjectConfigManager
Attributes
config[R]
Implementation of ProjectConfigManager
interface.
optimizely_config[R]
Implementation of ProjectConfigManager
interface.
Public Class Methods
new(datafile, logger, error_handler, skip_json_validation)
click to toggle source
# File lib/optimizely/config_manager/static_project_config_manager.rb, line 28 def initialize(datafile, logger, error_handler, skip_json_validation) # Looks up and sets datafile and config based on response body. # # datafile - JSON string representing the Optimizely project. # logger - Provides a logger instance. # error_handler - Provides a handle_error method to handle exceptions. # skip_json_validation - Optional boolean param which allows skipping JSON schema # validation upon object invocation. By default JSON schema validation will be performed. # Returns instance of DatafileProjectConfig, nil otherwise. @config = DatafileProjectConfig.create( datafile, logger, error_handler, skip_json_validation ) @optimizely_config = @config.nil? ? nil : OptimizelyConfig.new(@config).config end