Sha256: d34f48397657add5ff75f33b71e8139578d767698d55920cf9ac73771b9c0db1

Contents?: true

Size: 515 Bytes

Versions: 10

Compression:

Stored size: 515 Bytes

Contents

module Algolia
  module Personalization
    class Config < BaseConfig
      attr_accessor :region, :default_hosts

      # Initialize a config
      #
      # @option options [String] :application_id
      # @option options [String] :api_key
      # @option options [String] :region
      #
      def initialize(opts = {})
        super(opts)

        @region        = opts[:region] || 'us'
        @default_hosts = [Transport::StatefulHost.new("personalization.#{region}.algolia.com")]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
algolia-2.3.4 lib/algolia/config/personalization_config.rb
algolia-2.3.3 lib/algolia/config/personalization_config.rb
algolia-2.3.2 lib/algolia/config/personalization_config.rb
algolia-2.3.1 lib/algolia/config/personalization_config.rb
algolia-2.3.0 lib/algolia/config/personalization_config.rb
algolia-2.2.5 lib/algolia/config/personalization_config.rb
algolia-2.2.4 lib/algolia/config/personalization_config.rb
algolia-2.2.3 lib/algolia/config/personalization_config.rb
algolia-2.2.2 lib/algolia/config/personalization_config.rb
algolia-2.2.1 lib/algolia/config/personalization_config.rb