Class: Glossarist::Validation::Report

Inherits:
Struct
  • Object
show all
Defined in:
lib/glossarist/validation/shacl_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultsObject

Returns the value of attribute results

Returns:

  • (Object)

    the current value of results



70
71
72
# File 'lib/glossarist/validation/shacl_validator.rb', line 70

def results
  @results
end

Instance Method Details

#conformant?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/glossarist/validation/shacl_validator.rb', line 71

def conformant?
  results.empty?
end

#to_sObject



75
76
77
# File 'lib/glossarist/validation/shacl_validator.rb', line 75

def to_s
  "  #{results.length} violation(s)"
end