Sha256: 0a19ea03be9822d49b02048da839dd46c8189238bbc417315cbcdc0ee3500cb9

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

class EsExperiment::Config
  include Singleton
  attr_accessor :connection_tries,
                :documents_path,
                :schema_path,
                :index,
                :url
  attr_writer :time_between_connection_tries

  def time_between_connection_tries
    @time_between_connection_tries || 3
  end

  def schema
    @schema ||= Oj.load(File.read(File.join(Dir.pwd, schema_path)))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
es_experiment-0.1.0 lib/es_experiment/config.rb