Class: GraphDecoration
- Inherits:
-
Object
- Object
- GraphDecoration
- Defined in:
- lib/graph_decorator.rb
Overview
decorator class – this serves as the superclass for all the concrete decorators
Direct Known Subclasses
DSaleOfferDecorator, DSaleTypeDecorator, DSalesDecorator, MSaleOfferDecorator, MSaleTypeDecorator, MSalesDecorator, ProductByHitDecorator, ProductDecorator, ReturningCustomers, WSaleOfferDecorator, WSaleTypeDecorator, WSalesDecorator
Instance Method Summary collapse
- #doubleChart ⇒ Object
-
#initialize(real_graph) ⇒ GraphDecoration
constructor
A new instance of GraphDecoration.
- #multipleChart ⇒ Object
- #singleChart ⇒ Object
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
#doubleChart ⇒ Object
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 |
#multipleChart ⇒ Object
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 |
#singleChart ⇒ Object
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 |