Class: Valanga::Music::Groovin
- Inherits:
-
Base
- Object
- Base
- Valanga::Music::Groovin
show all
- Defined in:
- lib/valanga/music/groovin.rb
Constant Summary
collapse
- GROOVIN_KEY =
%w(
difficulty
rank
score
achievement_rate
miss_count
play_count
clear
full_combo
)
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#basic ⇒ Object
15
16
17
18
19
20
|
# File 'lib/valanga/music/groovin.rb', line 15
def basic
Valanga::MusicAttribute.new(create_attr(1)).tap do |attr|
attr.name = name
attr.artist = artist
end
end
|
#hard ⇒ Object
29
30
31
32
33
34
|
# File 'lib/valanga/music/groovin.rb', line 29
def hard
Valanga::MusicAttribute.new(create_attr(3)).tap do |attr|
attr.name = name
attr.artist = artist
end
end
|
#medium ⇒ Object
22
23
24
25
26
27
|
# File 'lib/valanga/music/groovin.rb', line 22
def medium
Valanga::MusicAttribute.new(create_attr(2)).tap do |attr|
attr.name = name
attr.artist = artist
end
end
|
#special ⇒ Object
36
37
38
39
40
41
42
43
|
# File 'lib/valanga/music/groovin.rb', line 36
def special
if has_special?
Valanga::MusicAttribute.new(create_attr(4)).tap do |attr|
attr.name = name
attr.artist = artist
end
end
end
|