Class: Graphomaton::RenderOptions

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(format: :svg, width: 800, height: 600, options: {}) ⇒ RenderOptions

Returns a new instance of RenderOptions.



197
198
199
# File 'lib/graphomaton/model.rb', line 197

def initialize(format: :svg, width: 800, height: 600, options: {})
  super(format: format.to_sym, width: width, height: height, options: ModelValue.copy(options))
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



196
197
198
# File 'lib/graphomaton/model.rb', line 196

def format
  @format
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



196
197
198
# File 'lib/graphomaton/model.rb', line 196

def height
  @height
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



196
197
198
# File 'lib/graphomaton/model.rb', line 196

def options
  @options
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



196
197
198
# File 'lib/graphomaton/model.rb', line 196

def width
  @width
end