captainteemo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/captainteemo.rb +1 -1
- data/lib/captainteemo/player.rb +14 -16
- metadata +2 -2
data/lib/captainteemo.rb
CHANGED
data/lib/captainteemo/player.rb
CHANGED
@@ -18,52 +18,50 @@ module LoL
|
|
18
18
|
#Returns observer metadata and information if
|
19
19
|
#String Summoner on String Platform is playing a valid game.
|
20
20
|
def self.ingame(platform, name, conditions={})
|
21
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
21
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/ingame")
|
22
22
|
search.fetch_resource
|
23
23
|
end
|
24
24
|
|
25
25
|
#Returns last 10 matches (order is random) for String Summoner on String Platform.
|
26
26
|
def self.recent_games(platform, name, conditions={})
|
27
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
27
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/recent_games")
|
28
28
|
search.fetch_resource
|
29
29
|
end
|
30
30
|
|
31
31
|
#Returns lifetime influence point gains for String Summoner on String Platform.
|
32
32
|
def self.influence_points(platform, name, conditions={})
|
33
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
34
|
-
search.fetch_resource
|
33
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/influence_points")
|
34
|
+
search.fetch_resource
|
35
35
|
end
|
36
36
|
|
37
37
|
#Returns runepages for String Summoner on String Platform.
|
38
38
|
def self.runes(platform, name, conditions={})
|
39
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
40
|
-
search.fetch_resource
|
39
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/runes")
|
40
|
+
search.fetch_resource
|
41
41
|
end
|
42
42
|
|
43
43
|
#Returns mastery pages for String Summoner on String Platform.
|
44
44
|
def self.mastery(platform, name, conditions={})
|
45
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
46
|
-
search.fetch_resource
|
45
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/mastery")
|
46
|
+
search.fetch_resource
|
47
47
|
end
|
48
48
|
|
49
49
|
#Returns Season 3 Leagues info (internally Pojo).
|
50
50
|
def self.leagues(platform, name, conditions={})
|
51
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
52
|
-
search.fetch_resource
|
51
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/leagues")
|
52
|
+
search.fetch_resource
|
53
53
|
end
|
54
54
|
|
55
55
|
#Returns all teams (and team match history) player is a member of.
|
56
56
|
def self.teams(platform, name, conditions={})
|
57
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
58
|
-
search.fetch_resource
|
57
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/teams")
|
58
|
+
search.fetch_resource
|
59
59
|
end
|
60
60
|
|
61
61
|
#Returns player commendation (internally Kudos).
|
62
62
|
def self.honor(platform, name, conditions={})
|
63
|
-
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name
|
64
|
-
search.fetch_resource
|
63
|
+
search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name}/honor")
|
64
|
+
search.fetch_resource
|
65
65
|
end
|
66
|
-
|
67
|
-
|
68
66
|
end
|
69
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: captainteemo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04
|
12
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|