Class: Lol::LeagueEntry
Overview
Holds the representation of a League
Instance Attribute Summary collapse
-
#division ⇒ String
readonly
The league division of the participant.
-
#is_fresh_blood ⇒ Boolean
readonly
Is fresh blood in this league.
-
#is_hot_streak ⇒ Boolean
readonly
Is currently on hot streak.
-
#is_inactive ⇒ Boolean
readonly
Is marked as inactive.
-
#is_veteran ⇒ Boolean
readonly
Is a veteran in this league.
-
#last_played ⇒ DateTime
readonly
Date of last played game at the time of writing this attributes is broken in the API it always returns 0.
-
#league_points ⇒ String
readonly
League points of entry.
-
#losses ⇒ String
readonly
Losses.
-
#mini_series ⇒ MiniSeries
readonly
If player is in a mini_series, returns the MiniSeries object representing it.
-
#player_or_team_id ⇒ String
readonly
Id for the player or the team returned.
-
#player_or_team_name ⇒ String
readonly
Name for the player or the team returned.
-
#time_until_decay ⇒ Boolean
readonly
Time until league decay.
-
#wins ⇒ String
readonly
Wins.
Attributes inherited from Model
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from Lol::Model
Instance Attribute Details
#division ⇒ String
Returns the league division of the participant.
6 7 8 |
# File 'lib/lol/league_entry.rb', line 6 def division @division end |
#is_fresh_blood ⇒ Boolean
Returns is fresh blood in this league.
10 11 12 |
# File 'lib/lol/league_entry.rb', line 10 def is_fresh_blood @is_fresh_blood end |
#is_hot_streak ⇒ Boolean
Returns is currently on hot streak.
14 15 16 |
# File 'lib/lol/league_entry.rb', line 14 def is_hot_streak @is_hot_streak end |
#is_inactive ⇒ Boolean
Returns is marked as inactive.
18 19 20 |
# File 'lib/lol/league_entry.rb', line 18 def is_inactive @is_inactive end |
#is_veteran ⇒ Boolean
Returns is a veteran in this league.
22 23 24 |
# File 'lib/lol/league_entry.rb', line 22 def is_veteran @is_veteran end |
#last_played ⇒ DateTime
Returns date of last played game at the time of writing this attributes is broken in the API it always returns 0.
53 54 55 |
# File 'lib/lol/league_entry.rb', line 53 def last_played @last_played end |
#league_points ⇒ String
Returns league points of entry.
26 27 28 |
# File 'lib/lol/league_entry.rb', line 26 def league_points @league_points end |
#losses ⇒ String
Returns losses.
47 48 49 |
# File 'lib/lol/league_entry.rb', line 47 def losses @losses end |
#mini_series ⇒ MiniSeries
Returns if player is in a mini_series, returns the MiniSeries object representing it.
31 32 33 |
# File 'lib/lol/league_entry.rb', line 31 def mini_series @mini_series end |
#player_or_team_id ⇒ String
Returns id for the player or the team returned.
35 36 37 |
# File 'lib/lol/league_entry.rb', line 35 def player_or_team_id @player_or_team_id end |
#player_or_team_name ⇒ String
Returns name for the player or the team returned.
39 40 41 |
# File 'lib/lol/league_entry.rb', line 39 def player_or_team_name @player_or_team_name end |
#time_until_decay ⇒ Boolean
Returns time until league decay.
57 58 59 |
# File 'lib/lol/league_entry.rb', line 57 def time_until_decay @time_until_decay end |
#wins ⇒ String
Returns wins.
43 44 45 |
# File 'lib/lol/league_entry.rb', line 43 def wins @wins end |