Class: Ucode::CodeChart::Provenance

Inherits:
Struct
  • Object
show all
Defined in:
lib/ucode/code_chart/provenance.rb

Overview

Per-codepoint provenance value object — every field the REQ (R5) requires in the sidecar JSON next to each extracted SVG.

Single source of truth for the provenance schema: the Sidecar writer reads this Struct, the Writer constructs it. Adding a field is one place to change.

extractor_version reads from Ucode::VERSION at construction so the field stays in sync with the gem's version bump — single source of truth.

extracted_at is the extraction event timestamp (UTC ISO8601), not the file-write timestamp.

Instance Attribute Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def block
  @block
end

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def codepoint
  @codepoint
end

#extracted_atObject

Returns the value of attribute extracted_at

Returns:

  • (Object)

    the current value of extracted_at



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def extracted_at
  @extracted_at
end

#extractor_versionObject

Returns the value of attribute extractor_version

Returns:

  • (Object)

    the current value of extractor_version



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def extractor_version
  @extractor_version
end

#source_pdf_sha256Object

Returns the value of attribute source_pdf_sha256

Returns:

  • (Object)

    the current value of source_pdf_sha256



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def source_pdf_sha256
  @source_pdf_sha256
end

#source_pdf_urlObject

Returns the value of attribute source_pdf_url

Returns:

  • (Object)

    the current value of source_pdf_url



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def source_pdf_url
  @source_pdf_url
end

#ucd_versionObject

Returns the value of attribute ucd_version

Returns:

  • (Object)

    the current value of ucd_version



23
24
25
# File 'lib/ucode/code_chart/provenance.rb', line 23

def ucd_version
  @ucd_version
end