Class: BarChartRange

Inherits:
Object
  • Object
show all
Includes:
ValueEquality
Defined in:
lib/jirametrics/bar_chart_range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ValueEquality

#==, #eql?

Constructor Details

#initialize(start:, stop:, color:, title:, highlight: false) ⇒ BarChartRange

Returns a new instance of BarChartRange.



10
11
12
13
14
15
16
# File 'lib/jirametrics/bar_chart_range.rb', line 10

def initialize start:, stop:, color:, title:, highlight: false
  @start = start
  @stop = stop
  @color = color
  @title = title
  @highlight = highlight
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



8
9
10
# File 'lib/jirametrics/bar_chart_range.rb', line 8

def color
  @color
end

#highlightObject

Returns the value of attribute highlight.



8
9
10
# File 'lib/jirametrics/bar_chart_range.rb', line 8

def highlight
  @highlight
end

#startObject

Returns the value of attribute start.



8
9
10
# File 'lib/jirametrics/bar_chart_range.rb', line 8

def start
  @start
end

#stopObject

Returns the value of attribute stop.



8
9
10
# File 'lib/jirametrics/bar_chart_range.rb', line 8

def stop
  @stop
end

#titleObject

Returns the value of attribute title.



8
9
10
# File 'lib/jirametrics/bar_chart_range.rb', line 8

def title
  @title
end