Sha256: 3df2d49743f3fece76bc182b49d05edf6d8f5e2cf403cd523e062f11c5d3f3e9

Contents?: true

Size: 181 Bytes

Versions: 38

Compression:

Stored size: 181 Bytes

Contents

require 'haveapi/client/validator'

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

    def valid?
      value == opts[:value]
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
haveapi-client-0.25.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.24.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.7 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.6 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.5 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.4 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.3 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.2 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.23.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.22.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.22.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.21.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.21.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.20.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.19.3 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.19.2 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.19.1 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.19.0 lib/haveapi/client/validators/acceptance.rb
haveapi-client-0.18.2 lib/haveapi/client/validators/acceptance.rb