Class: Quby::Questionnaires::Entities::Charting::LineChart

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

Instance Attribute Summary collapse

Attributes inherited from Chart

#chart_type, #key, #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(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs) ⇒ LineChart

Returns a new instance of LineChart.



22
23
24
25
26
27
28
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 22

def initialize(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs)
  super(key, **kwargs)
  self.y_label = y_label
  self.tonality = tonality
  self.baseline = baseline
  self.clinically_relevant_change = clinically_relevant_change
end

Instance Attribute Details

#baselineProc

Returns:

  • (Proc)


17
18
19
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 17

def baseline
  @baseline
end

#clinically_relevant_changeFloat

Returns:

  • (Float)


20
21
22
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 20

def clinically_relevant_change
  @clinically_relevant_change
end

#tonalitySymbol

Returns:

  • (Symbol)


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

def tonality
  @tonality
end

#y_labelString

Returns:

  • (String)


11
12
13
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 11

def y_label
  @y_label
end