Class: BasicGraph
- Inherits:
-
Object
- Object
- BasicGraph
- Defined in:
- lib/graph_decorator.rb
Overview
This componenet class provides a basic structure of accepting the type of chart. That initialises to all types of chart requested by the user.
Instance Method Summary collapse
-
#doubleChart ⇒ Object
returns charttype when called by decorator class.
-
#initialize(chartType) ⇒ BasicGraph
constructor
initializes the object with type of chart passed from the application.
-
#multipleChart ⇒ Object
returns charttype when called by decorator class.
-
#singleChart ⇒ Object
returns charttype when called by decorator class.
Constructor Details
#initialize(chartType) ⇒ BasicGraph
initializes the object with type of chart passed from the application
7 8 9 |
# File 'lib/graph_decorator.rb', line 7 def initialize(chartType) @chartType = chartType end |
Instance Method Details
#doubleChart ⇒ Object
returns charttype when called by decorator class
17 18 19 |
# File 'lib/graph_decorator.rb', line 17 def doubleChart return @chartType end |
#multipleChart ⇒ Object
returns charttype when called by decorator class
22 23 24 |
# File 'lib/graph_decorator.rb', line 22 def multipleChart return @chartType end |
#singleChart ⇒ Object
returns charttype when called by decorator class
12 13 14 |
# File 'lib/graph_decorator.rb', line 12 def singleChart return @chartType end |