Sha256: 03dd9c7d673de552eec2512cbd25721d3a7dd655500f396034d58c442a57d7a3

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module SimpleValidate
  class ValidatesBase
    attr_accessor :message, :attribute, :condition

    def initialize(attribute, message, condition)
      self.message   = message
      self.attribute = attribute
      self.condition = condition
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_validate-2.2.2 lib/simple_validate/validates_base.rb
simple_validate-2.1.2 lib/simple_validate/validates_base.rb
simple_validate-2.0.2 lib/simple_validate/validates_base.rb
simple_validate-2.0.1 lib/simple_validate/validates_base.rb
simple_validate-2.0.0 lib/simple_validate/validates_base.rb
simple_validate-1.2.3 lib/simple_validate/validates_base.rb