Module: Songkick::Validations

Includes:
Errors
Included in:
Search
Defined in:
lib/songkick/client/validations.rb

Instance Method Summary collapse

Instance Method Details

#validate_options(valid_opts, opts) ⇒ Object



7
8
9
10
11
# File 'lib/songkick/client/validations.rb', line 7

def validate_options(valid_opts, opts)
  if (opts.keys.map(&:to_s) - valid_opts).any?
    raise InvalidOptions
  end
end