Class: HeuristicStatus
- Inherits:
-
Object
- Object
- HeuristicStatus
- Defined in:
- lib/tipster/presenters/heuristic_status.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(safe, description) ⇒ HeuristicStatus
constructor
A new instance of HeuristicStatus.
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
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/tipster/presenters/heuristic_status.rb', line 3 def description @description end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/tipster/presenters/heuristic_status.rb', line 3 def status @status end |