brawlhalla-api 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brawlhalla/api/ranking.rb +5 -2
- data/lib/brawlhalla/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d490a8825d6161e6b12cc636ed5c330df837d57976e48c7376eea36dadcd01
|
4
|
+
data.tar.gz: 1e2c89d74edcdb3609fa84ce7e0569641328dd6adb639fe0255635f6c924db3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ae171c5ed8f4cc072399a9e5a7ae99fe2e9de050cbbd06980dcae5b541a092fe7edf657ff20c9d2520d0f248fb0a105d4c8515592b4d4da36f540598385ad4
|
7
|
+
data.tar.gz: adea4cc5da6d5215db2df57adba5fbfa82711bc61d31e974882ece20a5906f44c3a95363687e58db0e6600633d16495bac9b22425d8bcc02083cb7f535e3ad68
|
@@ -23,8 +23,11 @@ module Brawlhalla
|
|
23
23
|
send("#{attr}=", json[attr])
|
24
24
|
end
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
legends = json[:legends] || []
|
27
|
+
doubles = json[:"2v2"] || []
|
28
|
+
|
29
|
+
@legend_rankings = legends.map { |legend_json| LegendRanking.new(legend_json) }
|
30
|
+
@doubles_rankings = doubles.map { |doubles_json| DoublesRanking.new(doubles_json) }
|
28
31
|
end
|
29
32
|
end
|
30
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brawlhalla-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rikas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|