Class: Graphomaton::RenderResult

Inherits:
Data
  • Object
show all
Defined in:
lib/graphomaton/model.rb,
sig/graphomaton.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output:, diagnostics:, bounds:, layout:) ⇒ RenderResult

Returns a new instance of RenderResult.



221
222
223
224
225
226
227
228
# File 'lib/graphomaton/model.rb', line 221

def initialize(output:, diagnostics:, bounds:, layout:)
  super(
    output: ModelValue.copy(output),
    diagnostics: ModelValue.copy(Array(diagnostics)),
    bounds: ModelValue.copy(bounds),
    layout: ModelValue.copy(layout)
  )
end

Instance Attribute Details

#bounds ⇒ Object (readonly)

Returns the value of attribute bounds

Returns:

  • (Object) —

    the current value of bounds



220
221
222
# File 'lib/graphomaton/model.rb', line 220

def bounds
  @bounds
end

#diagnostics ⇒ Object (readonly)

Returns the value of attribute diagnostics

Returns:

  • (Object) —

    the current value of diagnostics



220
221
222
# File 'lib/graphomaton/model.rb', line 220

def diagnostics
  @diagnostics
end

#layout ⇒ Object (readonly)

Returns the value of attribute layout

Returns:

  • (Object) —

    the current value of layout



220
221
222
# File 'lib/graphomaton/model.rb', line 220

def layout
  @layout
end

#output ⇒ Object (readonly)

Returns the value of attribute output

Returns:

  • (Object) —

    the current value of output



220
221
222
# File 'lib/graphomaton/model.rb', line 220

def output
  @output
end