Class: GraphDecoration

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_decorator.rb

Overview

decorator class – this serves as the superclass for all the concrete decorators

Instance Method Summary collapse

Constructor Details

#initialize(real_graph) ⇒ GraphDecoration

Returns a new instance of GraphDecoration.



25
26
27
# File 'lib/graph_decorator.rb', line 25

def initialize(real_graph)
  @real_graph = real_graph
end

Instance Method Details

#doubleChartObject



33
34
35
# File 'lib/graph_decorator.rb', line 33

def doubleChart
  return Charting.doublechart(@x_name, @y_data_1, @y_name_1, @y_data_2, @y_name_2, @real_graph.doubleChart)
end

#multipleChartObject



37
38
39
# File 'lib/graph_decorator.rb', line 37

def multipleChart
  return Charting.multichart(@x_name, @y_data_1, @y_name_1, @y_data_2, @y_name_2, @y_data_3, @y_name_3, @real_graph.multipleChart)
end

#singleChartObject



29
30
31
# File 'lib/graph_decorator.rb', line 29

def singleChart
  return Charting.singlechart(@x_name, @y_data_1, @y_name_1, @real_graph.singleChart)
end