module RknIpLookup::Config

Public Class Methods

included(base) click to toggle source
# File lib/rkn_ip_lookup/config.rb, line 5
def self.included(base)
  base.instance_eval do
    extend Dry::Configurable

    setting :database do
      setting :provider,        :antizapret
      setting :cache,           true
      setting :cache_file_path, 'tmp/cache/database.dump'
    end

    setting :logger, Logger.new(STDOUT), reader: true
  end
end