Class: BasicGraph

Inherits:
Object
  • Object
show all
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

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

#doubleChartObject

returns charttype when called by decorator class



17
18
19
# File 'lib/graph_decorator.rb', line 17

def doubleChart
	return @chartType
end

#multipleChartObject

returns charttype when called by decorator class



22
23
24
# File 'lib/graph_decorator.rb', line 22

def multipleChart
	return @chartType
end

#singleChartObject

returns charttype when called by decorator class



12
13
14
# File 'lib/graph_decorator.rb', line 12

def singleChart
	return @chartType
end