ruby-lol 0.9.4 → 0.9.5

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: 185946617f6f83c48386721358b7ac61e939eefb
4
- data.tar.gz: 2a0f58180518ce123932ea8643ee164b83a79575
3
+ metadata.gz: b133d29b38d8fa4c379674ca609e078d05e2ca11
4
+ data.tar.gz: 57a908136cefe6656e96635685a8efa3c1983aa7
5
5
  SHA512:
6
- metadata.gz: 3208bf2d80bed837cc70e57af92c69d97d13d1ea5f0ddb31dcbfa6fc9ecbeb38d3ec13c2dae93eaa3779438a239a7b3a42926cbdd8aa445af059446366bf51f6
7
- data.tar.gz: 4b6e792255cf2458cd4a83458a251c9ec77f8b3557a39306933aeba7876404e2ea9ea04c0a6da78b204d6a755ca65f59967f88d13a23129cc98c1d10e086bd76
6
+ metadata.gz: 1d766b7aa9cfb0c4c7530c04758174018c7f6dd607f0275f31538fe1fb87d77358b82e5a840775dac48dbf78ff39b0187ed18f4d203d39ea8a3e2aef3b9e7137
7
+ data.tar.gz: e807f72136823354d0fa939d8a2f768b6ee538825bf873eef639ffe33317299652b09465b02b45f2a8b30f4128c839a7562284af286386b10e8b881be409bd1d
data/README.md CHANGED
@@ -4,12 +4,6 @@
4
4
 
5
5
  ruby-lol is a wrapper to the [Riot Games API](https://developer.riotgames.com).
6
6
 
7
- ## NEWS
8
-
9
- Riot recently release a new version of the API. The old API calls will be available for the next six months. We are in the process of migrating all the API calls to the new versions.
10
-
11
- You can safely use the library, it will still work for the next six months, but we plan to complete the migration before 2014 ;)
12
-
13
7
  ## Installation
14
8
 
15
9
  Add this line to your application's Gemfile:
@@ -90,3 +84,8 @@ Or install it yourself as:
90
84
  3. Commit your changes (`git commit -am 'Add some feature'`)
91
85
  4. Push to the branch (`git push origin my-new-feature`)
92
86
  5. Create new Pull Request
87
+
88
+ ## Changelog
89
+
90
+ - 0.9.5 Fixed documentation
91
+ - 0.9.4 Completed support for updated API
data/lib/lol/champion.rb CHANGED
@@ -1,52 +1,52 @@
1
1
  module Lol
2
2
  class Champion < Lol::Model
3
3
  # @!attribute [r] id
4
- # @return [Fixnum] id of Champion
4
+ # @return [Fixnum] id of Champion
5
5
  attr_reader :id
6
6
 
7
7
  # @!attribute [r] name
8
- # @return [String] name of Champion
8
+ # @return [String] name of Champion
9
9
  attr_reader :name
10
10
 
11
11
  # @!attribute [r] active
12
- # @return [true] if the Champion is active
13
- # @return [false] if the Champion is disabled
12
+ # @return [true] if the Champion is active
13
+ # @return [false] if the Champion is disabled
14
14
  attr_reader :active
15
15
 
16
16
  # @!attribute [r] attack_rank
17
- # @return [Fixnum] attack rank of Champion
17
+ # @return [Fixnum] attack rank of Champion
18
18
  attr_reader :attack_rank
19
19
 
20
20
  # @!attribute [r] defense_rank
21
- # @return [Fixnum] defense rank of Champion
21
+ # @return [Fixnum] defense rank of Champion
22
22
  attr_reader :defense_rank
23
23
 
24
24
  # @!attribute [r] magic_rank
25
- # @return [Fixnum] magic rank of Champion
25
+ # @return [Fixnum] magic rank of Champion
26
26
  attr_reader :magic_rank
27
27
 
28
28
  # @!attribute [r] difficulty_rank
29
- # @return [Fixnum] difficulty rank of Champion
29
+ # @return [Fixnum] difficulty rank of Champion
30
30
  attr_reader :difficulty_rank
31
31
 
32
32
  # @!attribute [r] bot_enabled
33
- # @return [true] if the Champion is enabled in custom bot games
34
- # @return [false] if the Champion is disabled in custom bot games
33
+ # @return [true] if the Champion is enabled in custom bot games
34
+ # @return [false] if the Champion is disabled in custom bot games
35
35
  attr_reader :bot_enabled
36
36
 
37
37
  # @!attribute [r] free_to_play
38
- # @return [true] if the Champion is currently free to play
39
- # @return [false] if the Champion isn't currently free to play
38
+ # @return [true] if the Champion is currently free to play
39
+ # @return [false] if the Champion isn't currently free to play
40
40
  attr_reader :free_to_play
41
41
 
42
42
  # @!attribute [r] bot_mm_enabled
43
- # @return [true] if the Champion is enabled in match made bot games
44
- # @return [false] if the Champion is disabled in match made bot games
43
+ # @return [true] if the Champion is enabled in match made bot games
44
+ # @return [false] if the Champion is disabled in match made bot games
45
45
  attr_reader :bot_mm_enabled
46
46
 
47
47
  # @!attribute [r] ranked_play_enabled
48
- # @return [true] if the Champion is enabled in ranked play
49
- # @return [false] if the Champion is disabled in ranked play
48
+ # @return [true] if the Champion is enabled in ranked play
49
+ # @return [false] if the Champion is disabled in ranked play
50
50
  attr_reader :ranked_play_enabled
51
51
 
52
52
  private
@@ -3,15 +3,15 @@ require 'lol/model'
3
3
  module Lol
4
4
  class ChampionStatisticsSummary < Lol::Model
5
5
  # @!attribute [r] id
6
- # @return [Fixnum] Champion Id
6
+ # @return [Fixnum] Champion Id
7
7
  attr_reader :id
8
8
 
9
9
  # @!attribute [r] name
10
- # @return [String] Champion Name
10
+ # @return [String] Champion Name
11
11
  attr_reader :name
12
12
 
13
13
  # @!attribute [r] stats
14
- # @return [Array] List of stats associated with this champion
14
+ # @return [Array] List of stats associated with this champion
15
15
  attr_reader :stats
16
16
 
17
17
  private
data/lib/lol/client.rb CHANGED
@@ -5,11 +5,11 @@ module Lol
5
5
  class Client
6
6
 
7
7
  # @!attribute [rw] region
8
- # @return [String] name of region
8
+ # @return [String] name of region
9
9
  attr_accessor :region
10
10
 
11
11
  # @!attribute [r] api_key
12
- # @return [String] the API key that has been used
12
+ # @return [String] the API key that has been used
13
13
  attr_reader :api_key
14
14
 
15
15
  # @return [ChampionRequest]
data/lib/lol/game.rb CHANGED
@@ -3,44 +3,44 @@ require 'lol/model'
3
3
  module Lol
4
4
  class Game < Lol::Model
5
5
  # @!attribute [r] id
6
- # @return [Fixnum] Game Id
6
+ # @return [Fixnum] Game Id
7
7
  attr_reader :game_id
8
8
 
9
9
  # @!attribute [r] champion_id
10
- # @return [Fixnum] Champion Id associated with this game
10
+ # @return [Fixnum] Champion Id associated with this game
11
11
  attr_reader :champion_id
12
12
 
13
13
  # @!attribute [r] create_date
14
- # @return [Time] Date game was played
14
+ # @return [Time] Date game was played
15
15
  attr_reader :create_date
16
16
 
17
17
  # @!attribute [r] create_date_str
18
- # @return [String] Human readable string representing date game was played
18
+ # @return [String] Human readable string representing date game was played
19
19
  attr_reader :create_date_str
20
20
 
21
21
  # @!attribute [r] fellow_players
22
- # @return [Array] list of players associated with this game
22
+ # @return [Array] list of players associated with this game
23
23
  attr_reader :fellow_players
24
24
 
25
25
  # @!attribute [r] game_mode
26
- # @return [String] Game Mode
26
+ # @return [String] Game Mode
27
27
  attr_reader :game_mode
28
28
 
29
29
  # @!attribute [r] game_type
30
- # @return [String] Game Type
30
+ # @return [String] Game Type
31
31
  attr_reader :game_type
32
32
 
33
33
  # @!attribute [r] invalid
34
- # @return [true] if the game is invalid
35
- # @return [false] if the game is valid
34
+ # @return [true] if the game is invalid
35
+ # @return [false] if the game is valid
36
36
  attr_reader :invalid
37
37
 
38
38
  # @!attribute [r] level
39
- # @return [Fixnum] Level
39
+ # @return [Fixnum] Level
40
40
  attr_reader :level
41
41
 
42
42
  # @!attribute [r] map_id
43
- # @return [Fixnum] Map Id
43
+ # @return [Fixnum] Map Id
44
44
  attr_reader :map_id
45
45
 
46
46
  # @!attribute [r] spell1
@@ -52,15 +52,15 @@ module Lol
52
52
  attr_reader :spell2
53
53
 
54
54
  # @!attribute [r] statistics
55
- # @return [Array] Statistics associated with the game for this summoner
55
+ # @return [Array] Statistics associated with the game for this summoner
56
56
  attr_reader :statistics
57
57
 
58
58
  # @!attribute [r] sub_type
59
- # @return [String] Game sub-type
59
+ # @return [String] Game sub-type
60
60
  attr_reader :sub_type
61
61
 
62
62
  # @!attribute [r] team_id
63
- # @return [Fixnum] Team Id associated with game
63
+ # @return [Fixnum] Team Id associated with game
64
64
  attr_reader :team_id
65
65
 
66
66
  private
data/lib/lol/league.rb CHANGED
@@ -2,19 +2,19 @@ module Lol
2
2
  # Holds the representation of a League
3
3
  class League < Model
4
4
  # @!attribute [r] name
5
- # @return [String] name of league
5
+ # @return [String] name of league
6
6
  attr_reader :name
7
7
 
8
8
  # @!attribute [r] tier
9
- # @return [String] tier of league
9
+ # @return [String] tier of league
10
10
  attr_reader :tier
11
11
 
12
12
  # @!attribute [r] queue
13
- # @return [String] type of queue
13
+ # @return [String] type of queue
14
14
  attr_reader :queue
15
15
 
16
16
  # @!attribute [r] entries
17
- # @return [String] summoners / teams in queue
17
+ # @return [String] summoners / teams in queue
18
18
  attr_reader :entries
19
19
 
20
20
  private
@@ -2,65 +2,65 @@ module Lol
2
2
  # Holds the representation of a League
3
3
  class LeagueEntry < Model
4
4
  # @!attribute [r] player_or_team_id
5
- # @return [String] id for the player or the team returned
5
+ # @return [String] id for the player or the team returned
6
6
  attr_reader :player_or_team_id
7
7
 
8
8
  # @!attribute [r] player_or_team_name
9
- # @return [String] name for the player or the team returned
9
+ # @return [String] name for the player or the team returned
10
10
  attr_reader :player_or_team_name
11
11
 
12
12
  # @!attribute [r] league_name
13
- # @return [String] name of league
13
+ # @return [String] name of league
14
14
  attr_reader :league_name
15
15
 
16
16
  # @!attribute [r] queue_type
17
- # @return [String] type of queue
17
+ # @return [String] type of queue
18
18
  attr_reader :queue_type
19
19
 
20
20
  # @!attribute [r] entry tier
21
- # @return [String] tier of league
21
+ # @return [String] tier of league
22
22
  attr_reader :tier
23
23
 
24
24
  # @!attribute [r] rank
25
- # @return [String] entry rank
25
+ # @return [String] entry rank
26
26
  attr_reader :rank
27
27
 
28
28
  # @!attribute [r] league_points
29
- # @return [String] league points of entry
29
+ # @return [String] league points of entry
30
30
  attr_reader :league_points
31
31
 
32
32
  # @!attribute [r] wins
33
- # @return [String] wins
33
+ # @return [String] wins
34
34
  attr_reader :wins
35
35
 
36
36
  # @!attribute [r] is_hot_streak
37
- # @return [Boolean] is currently on hot streak
37
+ # @return [Boolean] is currently on hot streak
38
38
  attr_reader :is_hot_streak
39
39
 
40
40
  # @!attribute [r] is_veteran
41
- # @return [Boolean] is a veteran in this league
41
+ # @return [Boolean] is a veteran in this league
42
42
  attr_reader :is_veteran
43
43
 
44
44
  # @!attribute [r] is_fresh_blood
45
- # @return [Boolean] is fresh blood in this league
45
+ # @return [Boolean] is fresh blood in this league
46
46
  attr_reader :is_fresh_blood
47
47
 
48
48
  # @!attribute [r] is_inactive
49
- # @return [Boolean] is marked as inactive
49
+ # @return [Boolean] is marked as inactive
50
50
  attr_reader :is_inactive
51
51
 
52
52
  # @!attribute [r] last_played
53
- # @return [DateTime] date of last played game
53
+ # @return [DateTime] date of last played game
54
54
  # at the time of writing this attributes is broken in the API
55
55
  # it always returns 0.
56
56
  attr_reader :last_played
57
57
 
58
58
  # @!attribute [r] time_until_decay
59
- # @return [Boolean] time until league decay
59
+ # @return [Boolean] time until league decay
60
60
  attr_reader :time_until_decay
61
61
 
62
62
  # @!attribute [r] mini_series
63
- # @return [MiniSeries] if player is in a mini_series, returns the MiniSeries object
63
+ # @return [MiniSeries] if player is in a mini_series, returns the MiniSeries object
64
64
  # representing it
65
65
  attr_reader :mini_series
66
66
 
@@ -2,19 +2,19 @@ module Lol
2
2
  class MasteryPage < Model
3
3
 
4
4
  # @!attribute [r] id
5
- # @return [Fixnum] id of summoner
5
+ # @return [Fixnum] id of summoner
6
6
  attr_reader :summoner_id
7
7
 
8
8
  # @!attribute [r] talents
9
- # @return [Array] array of Lol::Talent
9
+ # @return [Array] array of Lol::Talent
10
10
  attr_reader :talents
11
11
 
12
12
  # @!attribute [r] name
13
- # @return [String] name of mastery page
13
+ # @return [String] name of mastery page
14
14
  attr_reader :name
15
15
 
16
16
  # @!attribute [r] current
17
- # @return [Boolean] is it the current mastery page?
17
+ # @return [Boolean] is it the current mastery page?
18
18
  attr_reader :current
19
19
 
20
20
  private
@@ -3,49 +3,49 @@ require 'lol/model'
3
3
  module Lol
4
4
  class MatchSummary < Lol::Model
5
5
  # @!attribute [r] assists
6
- # @return [Fixnum] Number of assists
6
+ # @return [Fixnum] Number of assists
7
7
  attr_reader :assists
8
8
 
9
9
  # @!attribute [r] date
10
- # @return [Time] Match date
10
+ # @return [Time] Match date
11
11
  attr_reader :date
12
12
 
13
13
  # @!attribute [r] deaths
14
- # @return [Fixnum] Number of deaths
14
+ # @return [Fixnum] Number of deaths
15
15
  attr_reader :deaths
16
16
 
17
17
  # @!attribute [r] game_id
18
- # @return [Fixnum] Game Id
18
+ # @return [Fixnum] Game Id
19
19
  attr_reader :game_id
20
20
 
21
21
  # @!attribute [r] game_mode
22
- # @return [String] Game Mode
22
+ # @return [String] Game Mode
23
23
  attr_reader :game_mode
24
24
 
25
25
  # @!attribute [r] invalid
26
- # @return [true] If the match is invalid
27
- # @return [false] If the match is valid
26
+ # @return [true] If the match is invalid
27
+ # @return [false] If the match is valid
28
28
  attr_reader :invalid
29
29
 
30
30
  # @!attribute [r] kills
31
- # @return [Fixnum] Number of kills
31
+ # @return [Fixnum] Number of kills
32
32
  attr_reader :kills
33
33
 
34
34
  # @!attribute [r] map_id
35
- # @return [Fixnum] Map Id
35
+ # @return [Fixnum] Map Id
36
36
  attr_reader :map_id
37
37
 
38
38
  # @!attribute [r] opposing_team_kills
39
- # @return [Fixnum] Opposing Team Kills
39
+ # @return [Fixnum] Opposing Team Kills
40
40
  attr_reader :opposing_team_kills
41
41
 
42
42
  # @!attribute [r] opposing_team_name
43
- # @return [String] Opposing Team Name
43
+ # @return [String] Opposing Team Name
44
44
  attr_reader :opposing_team_name
45
45
 
46
46
  # @!attribute [r] win
47
- # @return [true] If the team won this match
48
- # @return [false] If the team lost this match
47
+ # @return [true] If the team won this match
48
+ # @return [false] If the team lost this match
49
49
  attr_reader :win
50
50
 
51
51
  private
@@ -2,23 +2,23 @@ module Lol
2
2
  # Holds the representation of a MiniSeries
3
3
  class MiniSeries < Model
4
4
  # @!attribute [r] target
5
- # @return [String] number of games required to advance
5
+ # @return [String] number of games required to advance
6
6
  attr_reader :target
7
7
 
8
8
  # @!attribute [r] wins
9
- # @return [Fixnum] wins in the miniseries
9
+ # @return [Fixnum] wins in the miniseries
10
10
  attr_reader :wins
11
11
 
12
12
  # @!attribute [r] losses
13
- # @return [Fixnum] losses in the miniseries
13
+ # @return [Fixnum] losses in the miniseries
14
14
  attr_reader :losses
15
15
 
16
16
  # @!attribute [r] time_left_to_play_millis
17
- # @return [Fixnum] time left to play the miniseries, expressed in milliseconds
17
+ # @return [Fixnum] time left to play the miniseries, expressed in milliseconds
18
18
  attr_reader :time_left_to_play_millis
19
19
 
20
20
  # @!attribute [r] progress
21
- # @return [String] string representation of the miniseries progress.
21
+ # @return [String] string representation of the miniseries progress.
22
22
  # i.e. "WLN" (Win / Loss / Not played)
23
23
  attr_reader :progress
24
24
 
data/lib/lol/model.rb CHANGED
@@ -3,7 +3,7 @@ require 'active_support/core_ext/string/inflections'
3
3
  module Lol
4
4
  class Model
5
5
  # @!attribute [r] raw
6
- # @return [Hash] raw version of options Hash used to initialize Model
6
+ # @return [Hash] raw version of options Hash used to initialize Model
7
7
  attr_reader :raw
8
8
 
9
9
  # Initializes a Lol::Model
data/lib/lol/player.rb CHANGED
@@ -3,15 +3,15 @@ require 'lol/model'
3
3
  module Lol
4
4
  class Player < Lol::Model
5
5
  # @!attribute [r] champion_id
6
- # @return [Fixnum] Champion Id associated with player
6
+ # @return [Fixnum] Champion Id associated with player
7
7
  attr_reader :champion_id
8
8
 
9
9
  # @!attribute [r] summoner_id
10
- # @return [Fixnum] Summoner Id associated with player
10
+ # @return [Fixnum] Summoner Id associated with player
11
11
  attr_reader :summoner_id
12
12
 
13
13
  # @!attribute [r] team_id
14
- # @return [Fixnum] Team Id associated with player
14
+ # @return [Fixnum] Team Id associated with player
15
15
  attr_reader :team_id
16
16
 
17
17
  private
@@ -3,27 +3,27 @@ require 'lol/model'
3
3
  module Lol
4
4
  class PlayerStatistic < Lol::Model
5
5
  # @!attribute [r] aggregated_stats
6
- # @return [Array] List of aggregated statistics
6
+ # @return [Array] List of aggregated statistics
7
7
  attr_reader :aggregated_stats
8
8
 
9
9
  # @!attribute [r] losses
10
- # @return [Fixnum] Number of losses for this queue type. It's presed only for ranked queue types
10
+ # @return [Fixnum] Number of losses for this queue type. It's presed only for ranked queue types
11
11
  attr_reader :losses
12
12
 
13
13
  # @!attribute [r] modify_date
14
- # @return [Time] Date stat was last modified
14
+ # @return [Time] Date stat was last modified
15
15
  attr_reader :modify_date
16
16
 
17
17
  # @!attribute [r] modify_date_str
18
- # @return [String] Human readable string representing date stat was last modified
18
+ # @return [String] Human readable string representing date stat was last modified
19
19
  attr_reader :modify_date_str
20
20
 
21
21
  # @!attribute [r] player_stat_summary_type
22
- # @return [String] Summary Type. Legal values: AramUnranked5x5, CoopVsAI, OdinUnranked, RankedPremade3x3, RankedPremade5x5, RankedSolo5x5, RankedTeam3x3, RankedTeam5x5, Unranked, Unranked3x3
22
+ # @return [String] Summary Type. Legal values: AramUnranked5x5, CoopVsAI, OdinUnranked, RankedPremade3x3, RankedPremade5x5, RankedSolo5x5, RankedTeam3x3, RankedTeam5x5, Unranked, Unranked3x3
23
23
  attr_reader :player_stat_summary_type
24
24
 
25
25
  # @!attribute [r] wins
26
- # @return [Fixnum] Number of wins for this queue type
26
+ # @return [Fixnum] Number of wins for this queue type
27
27
  attr_reader :wins
28
28
 
29
29
  private
@@ -3,19 +3,19 @@ require 'lol/model'
3
3
  module Lol
4
4
  class RankedStatisticsSummary < Lol::Model
5
5
  # @!attribute [r] champions
6
- # @return [Array] List of player stats summarized by champion
6
+ # @return [Array] List of player stats summarized by champion
7
7
  attr_reader :champions
8
8
 
9
9
  # @!attribute [r] modify_date
10
- # @return [Time] Time stats were last updated
10
+ # @return [Time] Time stats were last updated
11
11
  attr_reader :modify_date
12
12
 
13
13
  # @!attribute [r] modify_date_str
14
- # @return [String] Human readable string representing date stats were last updated
14
+ # @return [String] Human readable string representing date stats were last updated
15
15
  attr_reader :modify_date_str
16
16
 
17
17
  # @!attribute [r] summoner_id
18
- # @return [Fixnum] Summoner Id
18
+ # @return [Fixnum] Summoner Id
19
19
  attr_reader :summoner_id
20
20
 
21
21
  private
@@ -3,15 +3,15 @@ require 'lol/model'
3
3
  module Lol
4
4
  class RawStatistic < Lol::Model
5
5
  # @!attribute [r] id
6
- # @return [Fixnum] Raw Statistic Id
6
+ # @return [Fixnum] Raw Statistic Id
7
7
  attr_reader :id
8
8
 
9
9
  # @!attribute [r] name
10
- # @return [String] Raw Statistic name
10
+ # @return [String] Raw Statistic name
11
11
  attr_reader :name
12
12
 
13
13
  # @!attribute [r] value
14
- # @return [Fixnum] Raw Statistic value
14
+ # @return [Fixnum] Raw Statistic value
15
15
  attr_reader :value
16
16
 
17
17
  private
data/lib/lol/request.rb CHANGED
@@ -8,12 +8,12 @@ module Lol
8
8
  include HTTParty
9
9
 
10
10
  # @!attribute [r] api_key
11
- # @return [String] api_key
11
+ # @return [String] api_key
12
12
  attr_reader :api_key
13
13
 
14
14
 
15
15
  # @!attribute [rw] region
16
- # @return [String] region
16
+ # @return [String] region
17
17
  attr_accessor :region
18
18
 
19
19
 
data/lib/lol/roster.rb CHANGED
@@ -3,11 +3,11 @@ require 'lol/model'
3
3
  module Lol
4
4
  class Roster < Lol::Model
5
5
  # @!attribute [r] owner_id
6
- # @return [Fixnum] Team Owner Id
6
+ # @return [Fixnum] Team Owner Id
7
7
  attr_reader :owner_id
8
8
 
9
9
  # @!attribute [r] member_list
10
- # @return [Array] List of members
10
+ # @return [Array] List of members
11
11
  attr_reader :member_list
12
12
 
13
13
  private
data/lib/lol/rune.rb CHANGED
@@ -1,19 +1,19 @@
1
1
  module Lol
2
2
  class Rune < Model
3
3
  # @!attribute [r] id
4
- # @return [Fixnum] Rune id
4
+ # @return [Fixnum] Rune id
5
5
  attr_reader :id
6
6
 
7
7
  # @!attribute [r] name
8
- # @return [String] Rune name
8
+ # @return [String] Rune name
9
9
  attr_reader :name
10
10
 
11
11
  # @!attribute [r] description
12
- # @return [String] Rune description
12
+ # @return [String] Rune description
13
13
  attr_reader :description
14
14
 
15
15
  # @!attribute [r] tier
16
- # @return [Fixnum] Rune tier
16
+ # @return [Fixnum] Rune tier
17
17
  attr_reader :tier
18
18
 
19
19
  private
data/lib/lol/rune_page.rb CHANGED
@@ -1,20 +1,20 @@
1
1
  module Lol
2
2
  class RunePage < Model
3
3
  # @!attribute [r] id
4
- # @return [Fixnum] id of Runepage
4
+ # @return [Fixnum] id of Runepage
5
5
  attr_reader :id
6
6
 
7
7
  # @!attribute [r] name
8
- # @return [String] name of Runepage
8
+ # @return [String] name of Runepage
9
9
  attr_reader :name
10
10
 
11
11
  # @!attribute [r] current
12
- # @return [Boolean] is the Runepage currently active?
12
+ # @return [Boolean] is the Runepage currently active?
13
13
  attr_reader :current
14
14
 
15
15
 
16
16
  # @!attribute [r] current
17
- # @return [Array] array of Lol::RuneSlot
17
+ # @return [Array] array of Lol::RuneSlot
18
18
  attr_reader :slots
19
19
  end
20
20
 
data/lib/lol/rune_slot.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Lol
2
2
  class RuneSlot < Model
3
3
  # @!attribute [r] id
4
- # @return [Fixnum] id of RuneSlot
4
+ # @return [Fixnum] id of RuneSlot
5
5
  def id
6
6
  @rune_slot_id
7
7
  end
data/lib/lol/summoner.rb CHANGED
@@ -1,27 +1,27 @@
1
1
  module Lol
2
2
  class Summoner < Model
3
3
  # @!attribute [r] id
4
- # @return [String]
4
+ # @return [String]
5
5
  attr_reader :id
6
6
 
7
7
  # @!attribute [r] name
8
- # @return [String] Summoner Name
8
+ # @return [String] Summoner Name
9
9
  attr_reader :name
10
10
 
11
11
  # @!attribute [r] profile_icon_id
12
- # @return [String] Id of the profile icon. No way to get the icon out for now
12
+ # @return [String] Id of the profile icon. No way to get the icon out for now
13
13
  attr_reader :profile_icon_id
14
14
 
15
15
  # @!attribute [r] revision_date
16
- # @return [Time] Last date of summoner profile revision
16
+ # @return [Time] Last date of summoner profile revision
17
17
  attr_reader :revision_date
18
18
 
19
19
  # @!attribute [r] revision_date_str
20
- # @return [String] Human readable string representing date of summoner profile revision
20
+ # @return [String] Human readable string representing date of summoner profile revision
21
21
  attr_reader :revision_date_str
22
22
 
23
23
  # @!attribute [r] summoner_level
24
- # @return [Numeric] 1-30
24
+ # @return [Numeric] 1-30
25
25
  attr_reader :summoner_level
26
26
 
27
27
  private
data/lib/lol/talent.rb CHANGED
@@ -2,15 +2,15 @@ module Lol
2
2
  class Talent < Model
3
3
 
4
4
  # @!attribute [r] id
5
- # @return [Fixnum] id of talent
5
+ # @return [Fixnum] id of talent
6
6
  attr_reader :id
7
7
 
8
8
  # @!attribute [r] name
9
- # @return [String] name of talent
9
+ # @return [String] name of talent
10
10
  attr_reader :name
11
11
 
12
12
  # @!attribute [r] rank
13
- # @return [Fixnum] rank of talent
13
+ # @return [Fixnum] rank of talent
14
14
  attr_reader :rank
15
15
 
16
16
  private
data/lib/lol/team.rb CHANGED
@@ -3,47 +3,47 @@ require 'lol/model'
3
3
  module Lol
4
4
  class Team < Lol::Model
5
5
  # @!attribute [r] full_id
6
- # @return [String] Full Team ID
6
+ # @return [String] Full Team ID
7
7
  attr_reader :full_id
8
8
 
9
9
  # @!attribute [r] create_date
10
- # @return [Time] Create Date
10
+ # @return [Time] Create Date
11
11
  attr_reader :create_date
12
12
 
13
13
  # @!attribute [r] last_game_date
14
- # @return [Time] Last Game Date
14
+ # @return [Time] Last Game Date
15
15
  attr_reader :last_game_date
16
16
 
17
17
  # @!attribute [r] last_join_date
18
- # @return [Time] Last Join Date
18
+ # @return [Time] Last Join Date
19
19
  attr_reader :last_join_date
20
20
 
21
21
  # @!attribute [r] last_joined_ranked_team_queue_date
22
- # @return [Time] Last Joined Ranked Team Queue Date
22
+ # @return [Time] Last Joined Ranked Team Queue Date
23
23
  attr_reader :last_joined_ranked_team_queue_date
24
24
 
25
25
  # @!attribute [r] match_history
26
- # @return [Array] List of played matches
26
+ # @return [Array] List of played matches
27
27
  attr_reader :match_history
28
28
 
29
29
  # @!attribute [r] message_of_day
30
- # @return [MessageOfDay] Message of Day
30
+ # @return [MessageOfDay] Message of Day
31
31
  attr_reader :message_of_day
32
32
 
33
33
  # @!attribute [r] modify_date
34
- # @return [Time] Modified Date
34
+ # @return [Time] Modified Date
35
35
  attr_reader :modify_date
36
36
 
37
37
  # @!attribute [r] name
38
- # @return [String] Team name
38
+ # @return [String] Team name
39
39
  attr_reader :name
40
40
 
41
41
  # @!attribute [r] roster
42
- # @return [Roster] Roster
42
+ # @return [Roster] Roster
43
43
  attr_reader :roster
44
44
 
45
45
  # @!attribute [r] second_last_join_date
46
- # @return [Time] Second Last Join Date
46
+ # @return [Time] Second Last Join Date
47
47
  attr_reader :second_last_join_date
48
48
 
49
49
  # @!attribute [r] status
@@ -55,19 +55,19 @@ module Lol
55
55
  attr_reader :tag
56
56
 
57
57
  # @!attribute [r] team_id
58
- # @return [String] Team Id
58
+ # @return [String] Team Id
59
59
  attr_reader :team_id
60
60
 
61
61
  # @!attribute [r] team_stat_summary
62
- # @return [Array] List of Team Statistics
62
+ # @return [Array] List of Team Statistics
63
63
  attr_reader :team_stat_summary
64
64
 
65
65
  # @!attribute [r] third_last_join_date
66
- # @return [Time] Third Last Join Date
66
+ # @return [Time] Third Last Join Date
67
67
  attr_reader :third_last_join_date
68
68
 
69
69
  # @!attribute [r] Timestamp
70
- # @return [Fixnum] Timestamp
70
+ # @return [Fixnum] Timestamp
71
71
  attr_reader :timestamp
72
72
 
73
73
  private
@@ -3,19 +3,19 @@ require 'lol/model'
3
3
  module Lol
4
4
  class TeamMember < Lol::Model
5
5
  # @!attribute [r] invite_date
6
- # @return [Time] Invite date
6
+ # @return [Time] Invite date
7
7
  attr_reader :invite_date
8
8
 
9
9
  # @!attribute [r] join_date
10
- # @return [Time] Join date
10
+ # @return [Time] Join date
11
11
  attr_reader :join_date
12
12
 
13
13
  # @!attribute [r] player_id
14
- # @return [Fixnum] Player Id
14
+ # @return [Fixnum] Player Id
15
15
  attr_reader :player_id
16
16
 
17
17
  # @!attribute [r] status
18
- # @return [String] Status
18
+ # @return [String] Status
19
19
  attr_reader :status
20
20
 
21
21
  private
@@ -1,5 +1,7 @@
1
1
  module Lol
2
2
  class TeamRequest < Request
3
+ # Returns the supported API version
4
+ # @return [String] supported api version
3
5
  def self.api_version
4
6
  "v2.2"
5
7
  end
@@ -3,43 +3,43 @@ require 'lol/model'
3
3
  module Lol
4
4
  class TeamStatistic < Lol::Model
5
5
  # @!attribute [r] full_id
6
- # @return [String] Full Team ID
6
+ # @return [String] Full Team ID
7
7
  attr_reader :full_id
8
8
 
9
9
  # @!attribute [r] average_games_played
10
- # @return [Fixnum] Average games played
10
+ # @return [Fixnum] Average games played
11
11
  attr_reader :average_games_played
12
12
 
13
13
  # @!attribute [r] average_games_played
14
- # @return [Fixnum] Average games played
14
+ # @return [Fixnum] Average games played
15
15
  attr_reader :average_games_played
16
16
 
17
17
  # @!attribute [r] losses
18
- # @return [Fixnum] Number of losses
18
+ # @return [Fixnum] Number of losses
19
19
  attr_reader :losses
20
20
 
21
21
  # @!attribute [r] max_rating
22
- # @return [Fixnum] Max Rating
22
+ # @return [Fixnum] Max Ratingx
23
23
  attr_reader :max_rating
24
24
 
25
25
  # @!attribute [r] rating
26
- # @return [Fixnum] Rating
26
+ # @return [Fixnum] Rating
27
27
  attr_reader :rating
28
28
 
29
29
  # @!attribute [r] seed_rating
30
- # @return [Fixnum] Seed Rating
30
+ # @return [Fixnum] Seed Rating
31
31
  attr_reader :seed_rating
32
32
 
33
33
  # @!attribute [r] team_id
34
- # @return [Fixnum] Team Id
34
+ # @return [Fixnum] Team Id
35
35
  attr_reader :team_id
36
36
 
37
37
  # @!attribute [r] team_stat_type
38
- # @return [String] Team Statistic Type name
38
+ # @return [String] Team Statistic Type name
39
39
  attr_reader :team_stat_type
40
40
 
41
41
  # @!attribute [r] wins
42
- # @return [Fixnum] Number of wins
42
+ # @return [Fixnum] Number of wins
43
43
  attr_reader :wins
44
44
 
45
45
  private
data/lib/lol/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lol
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Intini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-31 00:00:00.000000000 Z
11
+ date: 2014-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler