Sha256: 6353f8fc54b5fe62d6c313aa63723dec6992ad5670f0bd4a90f537102a069e81

Contents?: true

Size: 145 Bytes

Versions: 16

Compression:

Stored size: 145 Bytes

Contents

module HaveAPI::Client
  class Validators::Acceptance < Validator
    name :accept

    def valid?
      value == opts[: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/acceptance.rb
haveapi-client-0.11.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.10.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.9.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.8.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.7.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.7.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.6.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.5.4 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.5.3 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.5.2 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.5.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.5.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.4.2 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.4.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.4.0 lib/haveapi/client/validators/acceptance.rb