Class: ThresholdViolation
- Inherits:
-
Struct
- Object
- Struct
- ThresholdViolation
- Defined in:
- lib/cane/threshold_violation.rb
Overview
Value object used by ThresholdCheck.
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit
2 3 4 |
# File 'lib/cane/threshold_violation.rb', line 2 def limit @limit end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/cane/threshold_violation.rb', line 2 def name @name end |
#operator ⇒ Object
Returns the value of attribute operator
2 3 4 |
# File 'lib/cane/threshold_violation.rb', line 2 def operator @operator end |
#value ⇒ Object
Returns the value of attribute value
2 3 4 |
# File 'lib/cane/threshold_violation.rb', line 2 def value @value end |
Instance Method Details
#columns ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/cane/threshold_violation.rb', line 7 def columns ["%s is %s, should be %s %s" % [ name, value, operator, limit ]] end |
#description ⇒ Object
3 4 5 |
# File 'lib/cane/threshold_violation.rb', line 3 def description "Quality threshold crossed" end |