Sha256: d0298330584f946cad71d1d5870a1f95a766742f1dfc68d389d8a7c9a06ccbed

Contents?: true

Size: 477 Bytes

Versions: 25

Compression:

Stored size: 477 Bytes

Contents

module Relaton
  module Config
    def configure
      if block_given?
        yield configuration
      end
    end

    def configuration
      @configuration ||= Configuration.new
    end
  end

  class Configuration
    attr_accessor :logs, :use_api

    def initialize
      @logs = %i(info error) # allowed values: :info, :warning, :error, :debug

      # @TODO change to true when we start using api.relaton.org
      @use_api = false
    end
  end

  extend Config
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
relaton-1.12.2 lib/relaton/config.rb
relaton-1.12.1 lib/relaton/config.rb
relaton-1.12.0 lib/relaton/config.rb
relaton-1.11.5 lib/relaton/config.rb
relaton-1.11.4 lib/relaton/config.rb
relaton-1.11.3 lib/relaton/config.rb
relaton-1.11.2 lib/relaton/config.rb
relaton-1.11.1 lib/relaton/config.rb
relaton-1.11.0 lib/relaton/config.rb
relaton-1.10.3 lib/relaton/config.rb
relaton-1.10.2 lib/relaton/config.rb
relaton-1.10.1 lib/relaton/config.rb
relaton-1.10.0 lib/relaton/config.rb
relaton-1.9.8 lib/relaton/config.rb
relaton-1.9.7 lib/relaton/config.rb
relaton-1.9.6 lib/relaton/config.rb
relaton-1.9.5 lib/relaton/config.rb
relaton-1.9.4 lib/relaton/config.rb
relaton-1.9.3 lib/relaton/config.rb
relaton-1.9.2 lib/relaton/config.rb