Sha256: be7e937e65eb315d2def0ba6d1871f897e31089de70ff0337b676b3bb4995e0a

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

# Encoding: utf-8

require 'chemistrykit/split_testing/optimizely_provider'

module ChemistryKit
  module SplitTesting
    class ProviderFactory
      def self.build(config)
        case config.provider
        when 'optimizely'
          ChemistryKit::SplitTesting::OptimizelyProvider.new(config)
        else
          raise ArgumentError.new "The provider: \"#{config.provider}\" is unknown!"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chemistrykit-3.10.1 lib/chemistrykit/split_testing/provider_factory.rb
chemistrykit-3.10.0 lib/chemistrykit/split_testing/provider_factory.rb
chemistrykit-3.9.1 lib/chemistrykit/split_testing/provider_factory.rb
chemistrykit-3.9.0 lib/chemistrykit/split_testing/provider_factory.rb
chemistrykit-3.9.0.rc3 lib/chemistrykit/split_testing/provider_factory.rb