Class: Proxy::DHCP::Device42::SchemeValidator
- Inherits:
-
PluginValidators::Base
- Object
- PluginValidators::Base
- Proxy::DHCP::Device42::SchemeValidator
- Defined in:
- lib/smart_proxy_dhcp_device42/scheme_validator.rb
Instance Method Summary collapse
Instance Method Details
#validate!(settings) ⇒ Object
3 4 5 6 |
# File 'lib/smart_proxy_dhcp_device42/scheme_validator.rb', line 3 def validate!(settings) return true if ['http', 'https'].include?(settings[:scheme]) raise ::Proxy::Error::ConfigurationError, "Setting 'scheme' can be set to either 'http' or 'https'" end |