class PoroValidator::Validator::Context

Attributes

context[R]
entity[R]
errors[R]

Public Class Methods

new(entity, context, errors) click to toggle source

Initializes a new validator context

@param entity [Object] The entity which to be validated @param context [self] The validating/validator class @param errors [Object] Error cache

# File lib/poro_validator/validator/context.rb, line 12
def initialize(entity, context, errors)
  @entity  = entity
  @context = context
  @errors  = errors
end