dota_api_wrapper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dota_api_wrapper/match.rb +6 -0
- data/lib/dota_api_wrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02d94ff52033a6ff17d4e6276b55491887500169
|
4
|
+
data.tar.gz: 99da27c075dc06202fb2b933cc2363b0acdfce7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d57329a4747f2e45769b241da7702cebb9c1ecf543ccaa66b7a059797e9de15330f314408eeb68211d97ab8cd0ba94928a01ad061e2fb332f6ee3d751900dac
|
7
|
+
data.tar.gz: feb9a962d6de6d50cfc58a36ad206a5db1d6ded6481e49b3254227da09b07555ea1d8b57e4656396318828cdc041afe85c5499d91c4431e0a9fdc8d290dfdf4f
|
@@ -28,6 +28,12 @@ module DotaApiWrapper
|
|
28
28
|
@match_details ||= retrieve_details
|
29
29
|
end
|
30
30
|
|
31
|
+
# Return hash with all data from match
|
32
|
+
def complete_details
|
33
|
+
match_info.merge(match_details)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Consume API wrapper to get matches
|
31
37
|
def self.get_matches(options = {})
|
32
38
|
api_result = retrieve_info('/GetMatchHistory/V001', options)
|
33
39
|
return api_result['result'] unless api_result.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dota_api_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|