Class: ValidationOutput
- Inherits:
-
Object
- Object
- ValidationOutput
- Defined in:
- lib/genevalidator/validation_output.rb
Direct Known Subclasses
BlastRFValidationOutput, DuplciationValidationOutput, GeneMergeValidationOutput, LengthClusterValidationOutput, LengthRankValidationOutput, ORFValidationOutput
Instance Attribute Summary (collapse)
-
- (Object) message
readonly
Returns the value of attribute message.
Instance Method Summary (collapse)
- - (Object) color
-
- (ValidationOutput) initialize(message = "Not enough evidence")
constructor
A new instance of ValidationOutput.
- - (Object) print
- - (Object) validation
Constructor Details
- (ValidationOutput) initialize(message = "Not enough evidence")
Returns a new instance of ValidationOutput
5 6 7 |
# File 'lib/genevalidator/validation_output.rb', line 5 def initialize( = "Not enough evidence") @message = end |
Instance Attribute Details
- (Object) message (readonly)
Returns the value of attribute message
3 4 5 |
# File 'lib/genevalidator/validation_output.rb', line 3 def @message end |
Instance Method Details
- (Object) color
17 18 19 20 21 22 23 24 |
# File 'lib/genevalidator/validation_output.rb', line 17 def color if validation == :yes "white" else "red" end end |
- (Object) print
9 10 11 |
# File 'lib/genevalidator/validation_output.rb', line 9 def print end |
- (Object) validation
13 14 15 |
# File 'lib/genevalidator/validation_output.rb', line 13 def validation :no end |