Skip to content

Commit 8c8b82c

Browse files
committed
added race_name
1 parent 99e456e commit 8c8b82c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/esdb/identity.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ def to_hash
99
hash
1010
end
1111

12+
def race_name
13+
case most_played_race
14+
when "p"
15+
"protoss"
16+
when "t"
17+
"terran"
18+
when "z"
19+
"zerg"
20+
else
21+
nil
22+
end
23+
end
24+
1225
def sc2ranks_url
1326
"http://sc2ranks.com/#{gateway}/#{bnet_id}/#{name}"
1427
end

0 commit comments

Comments
 (0)