Sha256: 83c7ad0f85578b44a98be3dab63d6f9857450cb36ecaa461c8aed9ad102e6f63

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

# Encoding: utf-8

module ChemistryKit
  module Config
    class SplitTesting

      attr_accessor :provider, :base_url

      attr_writer :opt_out

      def initialize(opts)
        opts.each do |key, value|
          begin
            send("#{key}=", value)
          rescue NoMethodError
            raise ArgumentError.new "The config key: \"#{key}\" is unknown!"
          end
        end
      end

      def opt_out?
        !!@opt_out
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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