Skip to content

Commit dc0db65

Browse files
committed
its like a hackathon in here
1 parent 2404ed3 commit dc0db65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/esdb/match.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@ def userdelete(user_id)
4141
resp = RestClient.post(url + '/userdelete', :access_token => ESDB.api_key, :user_id => user_id)
4242
JSON.parse(resp)
4343
end
44+
45+
def expansion
46+
(release_string[0] == '2' && release_string != '2.0.4.24944') ? 'HotS' : 'WoL'
47+
end
48+
49+
def expansion_long
50+
expansion == 'HotS' ? 'Heart of the Swarm' : 'Wings of Liberty'
51+
end
4452
end
4553
end

0 commit comments

Comments
 (0)