Class: Shojiku::Snapshot
- Inherits:
-
Data
- Object
- Data
- Shojiku::Snapshot
- Defined in:
- lib/shojiku/engine.rb
Overview
Everything copied out of one result handle, before that handle is freed.
A snapshot rather than a wrapper, and that is the ownership rule of this binding in one word: no Ruby object ever holds a pointer into engine memory. The accessors LEND — their pointers die with the handle — so the bytes are copied while the handle is alive and the handle is freed on the way out, on every path.
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#json ⇒ Object
readonly
Returns the value of attribute json.
-
#pdf ⇒ Object
readonly
Returns the value of attribute pdf.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Attribute Details
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def diagnostics @diagnostics end |
#error ⇒ Object (readonly)
Returns the value of attribute error
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def error @error end |
#json ⇒ Object (readonly)
Returns the value of attribute json
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def json @json end |
#pdf ⇒ Object (readonly)
Returns the value of attribute pdf
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def pdf @pdf end |
#status ⇒ Object (readonly)
Returns the value of attribute status
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success
13 14 15 |
# File 'lib/shojiku/engine.rb', line 13 def success @success end |