captainteemo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,31 +37,31 @@ module LoL
37
37
  #Returns runepages for String Summoner on String Platform.
38
38
  def self.runes(platform, name, conditions={})
39
39
  search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name.to_s}/runes")
40
- search.fetch_resource
40
+ search.fetch_resource['data']
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
45
  search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name.to_s}/mastery")
46
- search.fetch_resource
46
+ search.fetch_resource['data']
47
47
  end
48
48
 
49
49
  #Returns Season 3 Leagues info (internally Pojo).
50
50
  def self.leagues(platform, name, conditions={})
51
51
  search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name.to_s}/leagues")
52
- search.fetch_resource
52
+ search.fetch_resource['data']
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
57
  search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name.to_s}/teams")
58
- search.fetch_resource
58
+ search.fetch_resource['data']
59
59
  end
60
60
 
61
61
  #Returns player commendation (internally Kudos).
62
62
  def self.honor(platform, name, conditions={})
63
63
  search = LoL::Search.new("/#{self.endpoints[:singular]}/#{platform.to_s}/#{name.to_s}/honor")
64
- search.fetch_resource
64
+ search.fetch_resource['data']
65
65
  end
66
66
 
67
67
 
data/lib/captainteemo.rb CHANGED
@@ -10,15 +10,5 @@ end
10
10
  end
11
11
 
12
12
  module LoL
13
- VERSION = "0.0.1"
14
- end
15
-
16
- #@search = LoL::Search.new
17
- #@search.resource('player')
18
- #@search.query('skrillux')
19
- #puts @search.fetch
20
-
21
- #@player = LoL::Player.find("euw", "skrillux")
22
- #puts @player.name
23
-
24
- #puts LoL::Player.runes("euw", "skrillux")
13
+ VERSION = "0.0.2"
14
+ 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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: