Class: Engine::Rating
- Inherits:
-
Struct
- Object
- Struct
- Engine::Rating
- Defined in:
- lib/engine/rating.rb
Constant Summary collapse
- MAX_RATING =
3
- FAIL =
0
- HARD =
1
- GOOD =
2
- EASY =
3
Instance Attribute Summary collapse
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#rating ⇒ Object
Returns the value of attribute rating
2 3 4 |
# File 'lib/engine/rating.rb', line 2 def @rating end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
2 3 4 |
# File 'lib/engine/rating.rb', line 2 def @timestamp end |
Instance Method Details
#neg_rating ⇒ Object
9 10 11 |
# File 'lib/engine/rating.rb', line 9 def MAX_RATING - end |