Class: GroupingRules

Inherits:
Rules
  • Object
show all
Includes:
PercentileValidation
Defined in:
lib/jirametrics/grouping_rules.rb

Direct Known Subclasses

DailyGroupingRules

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PercentileValidation

validate_percentile, validate_percentiles

Methods inherited from Rules

#hash, #ignore, #ignored?

Instance Attribute Details

#colorObject

Returns the value of attribute color.



9
10
11
# File 'lib/jirametrics/grouping_rules.rb', line 9

def color
  @color
end

#issue_hintObject

Returns the value of attribute issue_hint.



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

def issue_hint
  @issue_hint
end

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#label_hintObject

Returns the value of attribute label_hint.



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

def label_hint
  @label_hint
end

#last_day_of_periodObject

Returns the value of attribute last_day_of_period.



9
10
11
# File 'lib/jirametrics/grouping_rules.rb', line 9

def last_day_of_period
  @last_day_of_period
end

#percentilesObject

Returns the value of attribute percentiles.



9
10
11
# File 'lib/jirametrics/grouping_rules.rb', line 9

def percentiles
  @percentiles
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/jirametrics/grouping_rules.rb', line 23

def eql? other
  other.label == @label && other.color == @color
end

#groupObject



27
28
29
# File 'lib/jirametrics/grouping_rules.rb', line 27

def group
  [@label, @color]
end