Sha256: 06ccfbe8e6dfd56766f272ede59f53c708cd556789d97d1c98016abce9aae8d2

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

require 'wifidiag/collector'

module Wifidiag
  class Config
    def initialize(hash)
      @hash = hash
    end

    def [](k)
      @hash[k]
    end

    def fetch(*args)
      @hash.fetch(*args)
    end

    def dig(*args)
      @hash.dig(*args)
    end

    def adapter
      @hash.fetch(:adapter)
    end

    def collector
      @collector ||= Collector.new(adapter)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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