Class: Quby::Questionnaires::Entities::Charting::OverviewChart

Inherits:
Chart
  • Object
show all
Defined in:
lib/quby/questionnaires/entities/charting/overview_chart.rb

Instance Attribute Summary collapse

Attributes inherited from Chart

#chart_type, #key, #plotbands, #plotlines, #plottables, #tick_interval, #title, #y_categories, #y_range, #y_range_categories

Instance Method Summary collapse

Methods inherited from Chart

#default_y_range, #type

Constructor Details

#initialize(subscore: nil, y_max: nil) ⇒ OverviewChart

Returns a new instance of OverviewChart.



14
15
16
17
# File 'lib/quby/questionnaires/entities/charting/overview_chart.rb', line 14

def initialize(subscore: nil, y_max: nil)
  self.subscore = subscore
  self.y_max = y_max
end

Instance Attribute Details

#subscoreObject

Returns Symbol.

Returns:

  • Symbol



9
10
11
# File 'lib/quby/questionnaires/entities/charting/overview_chart.rb', line 9

def subscore
  @subscore
end

#y_maxObject

Returns Integer.

Returns:

  • Integer



12
13
14
# File 'lib/quby/questionnaires/entities/charting/overview_chart.rb', line 12

def y_max
  @y_max
end