class Castle::Validators::NotSupported

Checks if required keys are supported

Public Class Methods

call(options, keys) click to toggle source
# File lib/castle/validators/not_supported.rb, line 8
def call(options, keys)
  keys.each do |key|
    next unless options.key?(key)

    raise Castle::InvalidParametersError, "#{key} is/are not supported"
  end
end