Class: Pdf::Toolkit::Result

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#bytesObject (readonly)

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



34
35
36
# File 'app/services/pdf/toolkit.rb', line 34

def bytes
  @bytes
end

#metaObject (readonly)

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



34
35
36
# File 'app/services/pdf/toolkit.rb', line 34

def meta
  @meta
end