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.



23
24
25
# File 'lib/daytona/common/charts.rb', line 23

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



22
23
24
# File 'lib/daytona/common/charts.rb', line 22

def elements
  @elements
end

#pngObject

Returns the value of attribute png

Returns:

  • (Object)

    the current value of png



22
23
24
# File 'lib/daytona/common/charts.rb', line 22

def png
  @png
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



22
23
24
# File 'lib/daytona/common/charts.rb', line 22

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/daytona/common/charts.rb', line 22

def type
  @type
end