Sha256: f5ac31b72a4997b85d57789a32daaf9c065489ce367c89a6a24db9701d69cd1e
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
module Algolia module Recommendation class Config < AlgoliaConfig attr_accessor :region, :default_hosts # Initialize a config # # @option options [String] :app_id # @option options [String] :api_key # @option options [String] :region # def initialize(opts = {}) super(opts) @region = opts[:region] || 'us' @default_hosts = [Transport::StatefulHost.new("recommendation.#{region}.algolia.com")] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems