rito_api 0.1.2.3 → 0.1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7edb0db0cccfc0ff0946dae1840050df04d397c5
4
- data.tar.gz: 03ab70e7b857962c3bd6276bfb48dcf781110117
3
+ metadata.gz: a70b83ad9096583eabc4ad1a1cd28631f05265be
4
+ data.tar.gz: 37e4db47ff8996591460d56010392232759ae6ee
5
5
  SHA512:
6
- metadata.gz: 58a6801c42ce3d7da9b15467df96c63b96feda376610fa2f7d37ea189d9ee5dbc5cfc8f1cc051594b8c0770d3831c7751de5227b9c310e6cab0d38cc69b80159
7
- data.tar.gz: 816f1fc911e431d36c0b8351537ad40cb73de28df3b05d58b1c3615b6b03b65ff368fce72d0cfe37bbf88164ca671727193ef429ab572da2d3a97163fc325e59
6
+ metadata.gz: 7ac37acef796b262636dd1ccb571ebc479e1e01758ef1a9fc8b327db6152a2f58777ac125f9a437c8bf5d0e1bf8012bc1a2b9a10b2b07b9b5352b0f01780ffc3
7
+ data.tar.gz: 917b924477c26e486047cfa1cfbd55ad258039d5a5b9c4b79d8079d1fed4b03f947d9488430e8033c2bb508f5b74f6deeb5860181a33b84ab7996a3bd2ca640c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rito_api (0.1.2.3)
4
+ rito_api (0.1.2.4)
5
5
  httparty (~> 0.16.1)
6
6
  moneta (~> 1.0)
7
7
  redis (~> 4.0, >= 4.0.1)
@@ -40,7 +40,7 @@ module RitoApi
40
40
  RitoApi::Requests::Champion.new(@api_key, @region, @cache_store)
41
41
  end
42
42
 
43
- def matches
43
+ def match
44
44
  RitoApi::Requests::Match.new(@api_key, @region, @cache_store)
45
45
  end
46
46
 
@@ -4,25 +4,25 @@ module RitoApi
4
4
 
5
5
  class Match < Basic
6
6
 
7
- def get(matchId, ttl = @ttl)
7
+ def get_match(matchId, ttl = @ttl)
8
8
 
9
9
  return make_request(request_url("lol/match/v3/matches/#{matchId}"), ttl)
10
10
 
11
11
  end
12
12
 
13
13
  def get_bans(matchId, ttl = @ttl)
14
- payCheck = get(matchId, ttl)[:teams]
14
+ payCheck = get_match(matchId, ttl)[:teams]
15
15
  bans = []
16
16
  payCheck.each {|x| bans.push(x[:bans])}
17
17
  return bans
18
18
  end
19
19
 
20
20
  def get_players(matchId, ttl = @ttl)
21
- get(matchId, ttl)[:participantIdentities]
21
+ get_match(matchId, ttl)[:participantIdentities]
22
22
  end
23
23
 
24
24
  def stats(matchId, ttl = @ttl)
25
- get(matchId, ttl)[:participants]
25
+ get_match(matchId, ttl)[:participants]
26
26
  end
27
27
 
28
28
  def player_stats(matchId, championId, ttl = @ttl)
@@ -1,3 +1,3 @@
1
1
  module RitoApi
2
- VERSION = "0.1.2.3"
2
+ VERSION = "0.1.2.4"
3
3
  end
data/lib/rito_api.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "rito_api/version"
2
2
  require "rito_api/client"
3
- require "rito_api/client/requests/basic"
4
3
  module RitoApi
5
4
  # Your code goes here...
6
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rito_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.3
4
+ version: 0.1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manish Shahi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-24 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler