Class: Pastore::Params::ObjectValidation

Inherits:
Validation
  • Object
show all
Defined in:
lib/pastore/params/validations/object_validation.rb

Overview

Implements the validation logic for object parameters.

Instance Attribute Summary

Attributes inherited from Validation

#errors, #value

Instance Method Summary collapse

Methods inherited from Validation

#add_error, #required?, #valid?, validate!

Constructor Details

#initialize(name, value, modifier, **options) ⇒ ObjectValidation

Returns a new instance of ObjectValidation.



7
8
9
# File 'lib/pastore/params/validations/object_validation.rb', line 7

def initialize(name, value, modifier, **options)
  super(name, 'object', value, modifier, **options)
end