class Wifidiag::Config

Public Class Methods

new(hash) click to toggle source
# File lib/wifidiag/config.rb, line 5
def initialize(hash)
  @hash = hash
end

Public Instance Methods

[](k) click to toggle source
# File lib/wifidiag/config.rb, line 9
def [](k)
  @hash[k]
end
adapter() click to toggle source
# File lib/wifidiag/config.rb, line 21
def adapter
  @hash.fetch(:adapter)
end
collector() click to toggle source
# File lib/wifidiag/config.rb, line 25
def collector
  @collector ||= Collector.new(adapter)
end
dig(*args) click to toggle source
# File lib/wifidiag/config.rb, line 17
def dig(*args)
  @hash.dig(*args)
end
fetch(*args) click to toggle source
# File lib/wifidiag/config.rb, line 13
def fetch(*args)
  @hash.fetch(*args)
end