Class: Quiver::Validators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/quiver/validators/base.rb

Direct Known Subclasses

Presence, Unique

Instance Method Summary collapse

Constructor Details

#initialize(value, options, name, mapper = nil, model = nil) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
10
# File 'lib/quiver/validators/base.rb', line 4

def initialize(value, options, name, mapper=nil, model=nil)
  self.value = value
  self.options = options
  self.name = name
  self.mapper = mapper
  self.model = model
end