Sha256: 4d107255ec0594e14d42a37d7e5fe1fb8d22ecbca22fabd35afb92d1e280f3f4

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Validations
    module Types
      # Instances of this class may be used as tokens to denote that a parameter value could not be
      # coerced. The given message will be used as a validation error.
      class InvalidValue
        attr_reader :message

        def initialize(message = nil)
          @message = message
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/validations/types/invalid_value.rb
grape-2.1.3 lib/grape/validations/types/invalid_value.rb
grape-2.1.2 lib/grape/validations/types/invalid_value.rb
grape-2.1.1 lib/grape/validations/types/invalid_value.rb
grape-2.1.0 lib/grape/validations/types/invalid_value.rb
grape-2.0.0 lib/grape/validations/types/invalid_value.rb
grape-1.8.0 lib/grape/validations/types/invalid_value.rb
grape-1.7.1 lib/grape/validations/types/invalid_value.rb