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.



209
210
211
212
213
214
215
216
# File 'lib/graphomaton/model.rb', line 209

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

#boundsObject (readonly)

Returns the value of attribute bounds

Returns:

  • (Object)

    the current value of bounds



208
209
210
# File 'lib/graphomaton/model.rb', line 208

def bounds
  @bounds
end

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



208
209
210
# File 'lib/graphomaton/model.rb', line 208

def diagnostics
  @diagnostics
end

#layoutObject (readonly)

Returns the value of attribute layout

Returns:

  • (Object)

    the current value of layout



208
209
210
# File 'lib/graphomaton/model.rb', line 208

def layout
  @layout
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



208
209
210
# File 'lib/graphomaton/model.rb', line 208

def output
  @output
end