class Proxy::DHCP::Infoblox::RecordTypeValidator

Public Instance Methods

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