Class: GroupingRules
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
Methods inherited from Rules
#hash, #ignore, #ignored?, #inspect, #state
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
4 5 6 |
# File 'lib/jirametrics/grouping_rules.rb', line 4 def color @color end |
#label ⇒ Object
Returns the value of attribute label.
4 5 6 |
# File 'lib/jirametrics/grouping_rules.rb', line 4 def label @label end |
Instance Method Details
#eql?(other) ⇒ Boolean
6 7 8 |
# File 'lib/jirametrics/grouping_rules.rb', line 6 def eql? other other.label == @label && other.color == @color end |
#group ⇒ Object
10 11 12 |
# File 'lib/jirametrics/grouping_rules.rb', line 10 def group [@label, @color] end |