Class: Saphyr::Engine Private

Inherits:
Object
  • Object
show all
Defined in:
lib/saphyr/engine.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The engine used to handle the validation processus.

Defined Under Namespace

Classes: Context

Instance Method Summary collapse

Constructor Details

#initialize(ctx) ⇒ Engine

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.




65
66
67
# File 'lib/saphyr/engine.rb', line 65

def initialize(ctx)
  @ctx = ctx
end

Instance Method Details

#validateObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



69
70
71
72
# File 'lib/saphyr/engine.rb', line 69

def validate
  array_validation if @ctx.schema.root_array?
  object_validation if @ctx.schema.root_object?
end