class Proxy::DHCP::Device42::VerifyValidator

Public Instance Methods

validate!(settings) click to toggle source
# File lib/smart_proxy_dhcp_device42/verify_validator.rb, line 3
def validate!(settings)
  return true if [true, false].include?(settings[:verify])
  raise ::Proxy::Error::ConfigurationError, "Setting 'verify' can be set to either 'true' or 'false' ( bool )"
end