blizzard_api 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/blizzard_api/version.rb +1 -1
- data/lib/blizzard_api/wow.rb +1 -1
- data/lib/blizzard_api/wow/profile/profile.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f04ee3226793f53388335a8ab735f6b3bc682babd278a4ff17ddfd061eda809
|
4
|
+
data.tar.gz: 8105bf3473bcef5a5faf3bf185f5f2a441a3fbe517c1c9d9353cd38ea573de19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 307437b03cfd6e05dcdeb709450cbcfc3262e9b96ec334a6ee83f0e5617b9b4c518267b39da28d4fd37581a0d22af555054a0936d20e991473c8ec2b31d4dd43
|
7
|
+
data.tar.gz: 52ef45f2f7b93ef17a848ffc8b45559d3075d050fcd99de943cf3f3b6b0fe19157ffc33d77112abac3037c635258c55c474c72e57295490e6cbaad1a8541f7c7
|
data/CHANGELOG.md
CHANGED
data/lib/blizzard_api/version.rb
CHANGED
data/lib/blizzard_api/wow.rb
CHANGED
@@ -7,7 +7,8 @@ module BlizzardApi
|
|
7
7
|
class AccountProfile < Request
|
8
8
|
##
|
9
9
|
# @param token [String] A token obtained using the authorization_code flow
|
10
|
-
def initialize(token)
|
10
|
+
def initialize(token, region = nil)
|
11
|
+
super region
|
11
12
|
@token = token
|
12
13
|
end
|
13
14
|
|
@@ -17,8 +18,8 @@ module BlizzardApi
|
|
17
18
|
# @!macro request_options
|
18
19
|
#
|
19
20
|
# @!macro response
|
20
|
-
def get(
|
21
|
-
api_request base_url(:user_profile).to_s
|
21
|
+
def get(options = {})
|
22
|
+
api_request base_url(:user_profile).to_s, default_options.merge(options)
|
22
23
|
end
|
23
24
|
|
24
25
|
##
|
@@ -67,8 +68,9 @@ module BlizzardApi
|
|
67
68
|
{ ttl: CACHE_HOUR, namespace: :profile }
|
68
69
|
end
|
69
70
|
|
70
|
-
def api_request(_uri, query_string =
|
71
|
-
query_string
|
71
|
+
def api_request(_uri, query_string = {})
|
72
|
+
query_string.merge! access_token: @token
|
73
|
+
super
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|