require "enrichment/version"

module Enrichment
  require 'enrichment/util'
  require 'enrichment/configuration'
  require 'enrichment/resource'
  require 'enrichment/user_agent'
  require 'enrichment/ip'

  class << self
    attr_writer :configuration

    def configuration
      @configure ||= Enrichment::Configuration.new
    end

    def reset
      @configure = Enrichment::Configuration.new
    end

    def configure
      yield(configuration)
    end
  end
end
