Class: Ucode::Audit::CoverageReference::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/ucode/audit/coverage_reference.rb

Overview

Immutable per-codepoint row exposed by every reference. The tier and source fields are nil for references that don't carry provenance (e.g. UcdOnlyReference).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



29
30
31
# File 'lib/ucode/audit/coverage_reference.rb', line 29

def codepoint
  @codepoint
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



29
30
31
# File 'lib/ucode/audit/coverage_reference.rb', line 29

def id
  @id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



29
30
31
# File 'lib/ucode/audit/coverage_reference.rb', line 29

def source
  @source
end

#tierObject

Returns the value of attribute tier

Returns:

  • (Object)

    the current value of tier



29
30
31
# File 'lib/ucode/audit/coverage_reference.rb', line 29

def tier
  @tier
end

Instance Method Details

#provenance?Boolean

True when this entry carries provenance from a universal-set manifest. False for UCD-only references.

Returns:

  • (Boolean)


32
33
34
# File 'lib/ucode/audit/coverage_reference.rb', line 32

def provenance?
  !tier.nil? || !source.nil?
end