class Dinamo::Model::Validation::Validator

Attributes

options[R]

Public Class Methods

new(**options, &block) click to toggle source
# File lib/dinamo/model/validator.rb, line 9
def initialize(**options, &block)
  @options = options || {}
  @block = block
end

Public Instance Methods

validate(record) click to toggle source
# File lib/dinamo/model/validator.rb, line 14
def validate(record)
  raise NotImplementedError
end