Class: Maimailog::Data::Detail::Judge
- Inherits:
-
Object
- Object
- Maimailog::Data::Detail::Judge
- Defined in:
- lib/maimailog/data/detail.rb
Overview
ノーツ判定
Instance Attribute Summary collapse
-
#good ⇒ Object
Returns the value of attribute good.
-
#great ⇒ Object
Returns the value of attribute great.
-
#miss ⇒ Object
Returns the value of attribute miss.
-
#perfect ⇒ Object
Returns the value of attribute perfect.
Instance Method Summary collapse
-
#initialize ⇒ Judge
constructor
A new instance of Judge.
- #total ⇒ Object
Constructor Details
#initialize ⇒ Judge
Returns a new instance of Judge.
14 15 16 17 18 19 |
# File 'lib/maimailog/data/detail.rb', line 14 def initialize @perfect = 0 @great = 0 @good = 0 @miss = 0 end |
Instance Attribute Details
#good ⇒ Object
Returns the value of attribute good.
12 13 14 |
# File 'lib/maimailog/data/detail.rb', line 12 def good @good end |
#great ⇒ Object
Returns the value of attribute great.
12 13 14 |
# File 'lib/maimailog/data/detail.rb', line 12 def great @great end |
#miss ⇒ Object
Returns the value of attribute miss.
12 13 14 |
# File 'lib/maimailog/data/detail.rb', line 12 def miss @miss end |
#perfect ⇒ Object
Returns the value of attribute perfect.
12 13 14 |
# File 'lib/maimailog/data/detail.rb', line 12 def perfect @perfect end |
Instance Method Details
#total ⇒ Object
21 22 23 |
# File 'lib/maimailog/data/detail.rb', line 21 def total @perfect + @great + @good + @miss end |