Class: GroupingRules
- Includes:
- PercentileValidation
- Defined in:
- lib/jirametrics/grouping_rules.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#issue_hint ⇒ Object
Returns the value of attribute issue_hint.
-
#label ⇒ Object
Returns the value of attribute label.
-
#label_hint ⇒ Object
Returns the value of attribute label_hint.
-
#last_day_of_period ⇒ Object
Returns the value of attribute last_day_of_period.
-
#percentiles ⇒ Object
Returns the value of attribute percentiles.
Instance Method Summary collapse
Methods included from PercentileValidation
validate_percentile, validate_percentiles
Methods inherited from Rules
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
9 10 11 |
# File 'lib/jirametrics/grouping_rules.rb', line 9 def color @color end |
#issue_hint ⇒ Object
Returns the value of attribute issue_hint.
8 9 10 |
# File 'lib/jirametrics/grouping_rules.rb', line 8 def issue_hint @issue_hint end |
#label ⇒ Object
Returns the value of attribute label.
8 9 10 |
# File 'lib/jirametrics/grouping_rules.rb', line 8 def label @label end |
#label_hint ⇒ Object
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_period ⇒ Object
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 |
#percentiles ⇒ Object
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
23 24 25 |
# File 'lib/jirametrics/grouping_rules.rb', line 23 def eql? other other.label == @label && other.color == @color end |
#group ⇒ Object
27 28 29 |
# File 'lib/jirametrics/grouping_rules.rb', line 27 def group [@label, @color] end |