Class: Shojiku::Snapshot

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

Instance Attribute Details

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def diagnostics
  @diagnostics
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def error
  @error
end

#jsonObject (readonly)

Returns the value of attribute json

Returns:

  • (Object)

    the current value of json



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def json
  @json
end

#pdfObject (readonly)

Returns the value of attribute pdf

Returns:

  • (Object)

    the current value of pdf



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def pdf
  @pdf
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def status
  @status
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



13
14
15
# File 'lib/shojiku/engine.rb', line 13

def success
  @success
end