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 end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
2 3 4 |
# File 'lib/engine/rating.rb', line 2 def end |
Instance Method Details
#easy? ⇒ Boolean
16 |
# File 'lib/engine/rating.rb', line 16 def easy? ; == EASY end |
#fail? ⇒ Boolean
13 |
# File 'lib/engine/rating.rb', line 13 def fail? ; == FAIL end |
#good? ⇒ Boolean
15 |
# File 'lib/engine/rating.rb', line 15 def good? ; == GOOD end |
#hard? ⇒ Boolean
14 |
# File 'lib/engine/rating.rb', line 14 def hard? ; == HARD end |
#neg_rating ⇒ Object
9 10 11 |
# File 'lib/engine/rating.rb', line 9 def MAX_RATING - end |