Class: Unitsdb::Database::ReferenceValidator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/unitsdb/database/reference_validator.rb

Overview

Returns empty if all refs valid; otherwise { file_type => { ref_path => { id:, type:, ref_type: } } }.

Returns:

  • (Hash)

    empty if all refs valid; otherwise { file_type => { ref_path => { id:, type:, ref_type: } } }

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#invalidObject

Returns the value of attribute invalid

Returns:

  • (Object)

    the current value of invalid



18
19
20
# File 'lib/unitsdb/database/reference_validator.rb', line 18

def invalid
  @invalid
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/unitsdb/database/reference_validator.rb', line 19

def empty?
  invalid.empty?
end