File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
module ESDB
2
2
class Match < ESDB ::Resource
3
- # HAX
3
+
4
4
# Does the match have any summary data?
5
5
def summaries?
6
6
hash = self . to_hash
@@ -16,9 +16,6 @@ def replays?
16
16
self . replays_count && self . replays_count > 0
17
17
end
18
18
19
- # TODO: when there is ample time, I want to generalize stuff like this via
20
- # something like Hashie, but Hashie::Mash just didn't work out right away
21
- # it's complicated.. the fact that we have a key called "map" alone..
22
19
def map
23
20
Hashie ::Mash . new ( self . to_hash [ 'map' ] )
24
21
end
@@ -39,5 +36,10 @@ def teams
39
36
def duration_minutes
40
37
return ( duration_seconds / 60.0 ) . round
41
38
end
39
+
40
+ def userdelete ( user_id )
41
+ resp = RestClient . post ( url + '/userdelete' , :access_token => ESDB . api_key , :user_id => user_id )
42
+ JSON . parse ( resp )
43
+ end
42
44
end
43
45
end
You can’t perform that action at this time.
0 commit comments