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.



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

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

#format ⇒ Object (readonly)

Returns the value of attribute format

Returns:

  • (Object) —

    the current value of format



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

def format
  @format
end

#height ⇒ Object (readonly)

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



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

def height
  @height
end

#options ⇒ Object (readonly)

Returns the value of attribute options

Returns:

  • (Object) —

    the current value of options



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

def options
  @options
end

#width ⇒ Object (readonly)

Returns the value of attribute width

Returns:

  • (Object) —

    the current value of width



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

def width
  @width
end