Class: HeuristicStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/tipster/presenters/heuristic_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(safe, description) ⇒ HeuristicStatus

Returns a new instance of HeuristicStatus.



5
6
7
8
# File 'lib/tipster/presenters/heuristic_status.rb', line 5

def initialize(safe, description)
  @status = safe ? 'Safe' : 'Risky'
  @description = description
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/tipster/presenters/heuristic_status.rb', line 3

def description
  @description
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/tipster/presenters/heuristic_status.rb', line 3

def status
  @status
end