Class: Droonga::Catalog::Version2Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/droonga/catalog/version2_validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw, path) ⇒ Version2Validator

Returns a new instance of Version2Validator.



21
22
23
24
# File 'lib/droonga/catalog/version2_validator.rb', line 21

def initialize(raw, path)
  @raw = raw
  @path = path
end

Instance Method Details

#validateObject



26
27
28
29
30
31
32
33
34
# File 'lib/droonga/catalog/version2_validator.rb', line 26

def validate
  @details = []

  validate_datasets

  unless @details.empty?
    raise ValidationError.new(@path, @details)
  end
end