Class: Locked::Validators::NotSupported

Inherits:
Object
  • Object
show all
Defined in:
lib/locked/validators/not_supported.rb

Class Method Summary collapse

Class Method Details

.call(options, keys) ⇒ Object



7
8
9
10
11
12
# File 'lib/locked/validators/not_supported.rb', line 7

def call(options, keys)
  keys.each do |key|
    next unless options.key?(key)
    raise Locked::InvalidParametersError, "#{key} is/are not supported"
  end
end