Class: Pdf::Toolkit::Result
- Inherits:
-
Data
- Object
- Data
- Pdf::Toolkit::Result
- Defined in:
- app/services/pdf/toolkit.rb
Overview
Output of a toolkit operation. +bytes+ is the resulting PDF (nil for
inspect); +meta+ is a small hash surfaced to the caller / LLM.
Instance Attribute Summary collapse
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(bytes: nil, meta: {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(bytes: nil, meta: {}) ⇒ Result
Returns a new instance of Result.
35 |
# File 'app/services/pdf/toolkit.rb', line 35 def initialize(bytes: nil, meta: {}) = super |
Instance Attribute Details
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes
34 35 36 |
# File 'app/services/pdf/toolkit.rb', line 34 def bytes @bytes end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta
34 35 36 |
# File 'app/services/pdf/toolkit.rb', line 34 def @meta end |