Class: Ucode::CodeChart::Provenance
- Inherits:
-
Struct
- Object
- Struct
- Ucode::CodeChart::Provenance
- 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
-
#block ⇒ Object
Returns the value of attribute block.
-
#codepoint ⇒ Object
Returns the value of attribute codepoint.
-
#extracted_at ⇒ Object
Returns the value of attribute extracted_at.
-
#extractor_version ⇒ Object
Returns the value of attribute extractor_version.
-
#source_pdf_sha256 ⇒ Object
Returns the value of attribute source_pdf_sha256.
-
#source_pdf_url ⇒ Object
Returns the value of attribute source_pdf_url.
-
#ucd_version ⇒ Object
Returns the value of attribute ucd_version.
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def block @block end |
#codepoint ⇒ Object
Returns the value of attribute codepoint
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def codepoint @codepoint end |
#extracted_at ⇒ Object
Returns the value of attribute extracted_at
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def extracted_at @extracted_at end |
#extractor_version ⇒ Object
Returns the value of attribute extractor_version
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def extractor_version @extractor_version end |
#source_pdf_sha256 ⇒ Object
Returns the value of attribute 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_url ⇒ Object
Returns the value of attribute source_pdf_url
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def source_pdf_url @source_pdf_url end |
#ucd_version ⇒ Object
Returns the value of attribute ucd_version
23 24 25 |
# File 'lib/ucode/code_chart/provenance.rb', line 23 def ucd_version @ucd_version end |