Sha256: e7d8068a3c4b0320a3c2eea5d3d2f06a4d8e8c11e9a0f97d062edf02e06fe7f9

Contents?: true

Size: 500 Bytes

Versions: 20

Compression:

Stored size: 500 Bytes

Contents

module Algolia
  module Insights
    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("insights.#{region}.algolia.io")]
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
algolia-2.3.4 lib/algolia/config/insights_config.rb
algolia-2.3.3 lib/algolia/config/insights_config.rb
algolia-2.3.2 lib/algolia/config/insights_config.rb
algolia-2.3.1 lib/algolia/config/insights_config.rb
algolia-2.3.0 lib/algolia/config/insights_config.rb
algolia-2.2.5 lib/algolia/config/insights_config.rb
algolia-2.2.4 lib/algolia/config/insights_config.rb
algolia-2.2.3 lib/algolia/config/insights_config.rb
algolia-2.2.2 lib/algolia/config/insights_config.rb
algolia-2.2.1 lib/algolia/config/insights_config.rb
algolia-2.2.0 lib/algolia/config/insights_config.rb
algolia-2.1.1 lib/algolia/config/insights_config.rb
algolia-2.0.4 lib/algolia/config/insights_config.rb
algolia-2.0.3 lib/algolia/config/insights_config.rb
algolia-2.0.2 lib/algolia/config/insights_config.rb
algolia-2.0.1 lib/algolia/config/insights_config.rb
algolia-2.0.0 lib/algolia/config/insights_config.rb
algolia-2.0.0.pre.beta.3 lib/algolia/config/insights_config.rb
algolia-2.0.0.pre.beta.2 lib/algolia/config/insights_config.rb
algolia-2.0.0.pre.beta.1 lib/algolia/config/insights_config.rb