Class: ValidationOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/genevalidator/validation_output.rb

Direct Known Subclasses

BlastRFValidationOutput, DuplciationValidationOutput, GeneMergeValidationOutput, LengthClusterValidationOutput, LengthRankValidationOutput, ORFValidationOutput

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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(message = "Not enough evidence")
  @message = 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
  @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


9
10
11
# File 'lib/genevalidator/validation_output.rb', line 9

def print
  message
end

- (Object) validation



13
14
15
# File 'lib/genevalidator/validation_output.rb', line 13

def validation
  :no
end