Class: Daytona::Chart

Inherits:
Struct
  • Object
show all
Defined in:
lib/daytona/common/charts.rb

Direct Known Subclasses

CompositeChart, PieChart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, title: nil, png: nil, elements: []) ⇒ Chart

Returns a new instance of Chart.



26
27
28
# File 'lib/daytona/common/charts.rb', line 26

def initialize(type: nil, title: nil, png: nil, elements: [])
  super
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



25
26
27
# File 'lib/daytona/common/charts.rb', line 25

def elements
  @elements
end

#pngObject

Returns the value of attribute png

Returns:

  • (Object)

    the current value of png



25
26
27
# File 'lib/daytona/common/charts.rb', line 25

def png
  @png
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



25
26
27
# File 'lib/daytona/common/charts.rb', line 25

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



25
26
27
# File 'lib/daytona/common/charts.rb', line 25

def type
  @type
end