Class: Maimailog::Data::Detail::Judge

Inherits:
Object
  • Object
show all
Defined in:
lib/maimailog/data/detail.rb

Overview

ノーツ判定

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJudge

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

#goodObject

Returns the value of attribute good.



12
13
14
# File 'lib/maimailog/data/detail.rb', line 12

def good
  @good
end

#greatObject

Returns the value of attribute great.



12
13
14
# File 'lib/maimailog/data/detail.rb', line 12

def great
  @great
end

#missObject

Returns the value of attribute miss.



12
13
14
# File 'lib/maimailog/data/detail.rb', line 12

def miss
  @miss
end

#perfectObject

Returns the value of attribute perfect.



12
13
14
# File 'lib/maimailog/data/detail.rb', line 12

def perfect
  @perfect
end

Instance Method Details

#totalObject



21
22
23
# File 'lib/maimailog/data/detail.rb', line 21

def total
  @perfect + @great + @good + @miss
end