Sha256: c1e710396b170e34b04cd6adc208ad9e3d8b036daf1da99b3c4a770a5b14e0a1

Contents?: true

Size: 154 Bytes

Versions: 16

Compression:

Stored size: 154 Bytes

Contents

module HaveAPI::Client
  class Validators::Exclusion < Validator
    name :exclude

    def valid?
      !opts[:values].include?(value)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
haveapi-client-0.11.1 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.11.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.10.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.9.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.8.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.7.1 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.7.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.6.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.5.4 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.5.3 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.5.2 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.5.1 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.5.0 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.4.2 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.4.1 lib/haveapi/client/validators/exclusion.rb
haveapi-client-0.4.0 lib/haveapi/client/validators/exclusion.rb