taric 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/lib/taric/operation/base.rb +3 -3
- data/lib/taric/operation/match_list.rb +1 -1
- data/lib/taric/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed730eb8b2667d33a95af44abaf5c831037391bc
|
4
|
+
data.tar.gz: e2f13b12aa6482ab736b24c66a9c46fa6056831f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b97c1f084eeffeb955e36b0f16be1eb10ccdb9c5d6a8306564396e4a011bbd8f268af8ec947855f1792404db4c244d65ed6bae0b0dcbb8a27316ff4b240749
|
7
|
+
data.tar.gz: 55b7792f019d3e1d0c0c8e4dfc883d350bd0d457545a2cad0ecccb377c9e1a14180cdb3b84fb5aab4ed92b2835472cf6b2b1531d67ed9ae0dd389b26f5852f07
|
data/lib/taric/operation/base.rb
CHANGED
@@ -6,9 +6,9 @@ module Taric
|
|
6
6
|
# Converts [Time] to [Fixnum], or returns argument.
|
7
7
|
#
|
8
8
|
# @param time [Time] Time to convert to epoch.
|
9
|
-
# @return [Fixnum] Time in epoch
|
10
|
-
def
|
11
|
-
return time.to_i if time.instance_of? Time
|
9
|
+
# @return [Fixnum] Time in epoch milliseconds.``
|
10
|
+
def epoch_milliseconds(time)
|
11
|
+
return (time.to_f * 1000).to_i if time.instance_of? Time
|
12
12
|
time
|
13
13
|
end
|
14
14
|
end
|
@@ -18,7 +18,7 @@ module Taric
|
|
18
18
|
# @param end_time [Fixnum or Time] Optional - The end time to use for fetching games.
|
19
19
|
def match_list(summoner_id:, champion_ids: nil, ranked_queues: nil, seasons: nil, begin_time: nil, end_time: nil, begin_index: nil, end_index: nil)
|
20
20
|
response_for MATCH_LIST,
|
21
|
-
{summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime:
|
21
|
+
{summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime: epoch_milliseconds(begin_time), endTime: epoch_milliseconds(end_time), beginIndex: begin_index, endIndex: end_index}
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|
data/lib/taric/version.rb
CHANGED