Class: GcigCa125::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/gcig_ca125/result.rb

Instance Method Summary collapse

Constructor Details

#initialize(eva, res, norm) ⇒ Result

Returns a new instance of Result.



3
4
5
6
7
# File 'lib/gcig_ca125/result.rb', line 3

def initialize(eva, res, norm)
  @evaluable = eva
  @response  = res
  @normalised = norm
end

Instance Method Details

#evaluable?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/gcig_ca125/result.rb', line 16

def evaluable?
  @evaluable
end

#messageObject



12
13
14
# File 'lib/gcig_ca125/result.rb', line 12

def message
  self.to_s
end

#normalised?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/gcig_ca125/result.rb', line 24

def normalised?
  @normalised
end

#response?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/gcig_ca125/result.rb', line 20

def response?
  @response
end

#to_sObject



8
9
10
# File 'lib/gcig_ca125/result.rb', line 8

def to_s
  "Not evaluable"
end