We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8e04b commit b1648cdCopy full SHA for b1648cd
lib/esdb/match.rb
@@ -44,11 +44,29 @@ def userdelete(user_id)
44
end
45
46
def expansion_tag
47
- expansion == 0 ? 'WoL' : 'HotS'
+ case expansion
48
+ when 0
49
+ return 'WoL'
50
+ when 1
51
+ return 'HotS'
52
+ when 2
53
+ return 'LotV'
54
+ else
55
+ return '????'
56
+ end
57
58
59
def expansion_long
- expansion == 1 ? 'Heart of the Swarm' : 'Wings of Liberty'
60
61
62
+ return 'Wings of Liberty'
63
64
+ return 'Heart of the Swarm'
65
66
+ return 'Legacy of the Void'
67
68
+ return 'Unrecognized Expansion'
69
70
71
72
0 commit comments