Class: Lol::LeagueEntry
Overview
Holds the representation of a League
Instance Attribute Summary collapse
-
#entry tier(tier) ⇒ String
readonly
Tier of league.
-
#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_name ⇒ String
readonly
Name of league.
-
#league_points ⇒ String
readonly
League points of entry.
-
#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.
-
#queue_type ⇒ String
readonly
Type of queue.
-
#rank ⇒ String
readonly
Entry rank.
-
#tier ⇒ String
readonly
Tier of league.
-
#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
#entry tier(tier) ⇒ String (readonly)
Returns tier of league.
22 |
# File 'lib/lol/league_entry.rb', line 22 attr_reader :tier |
#is_fresh_blood ⇒ Boolean
Returns is fresh blood in this league.
46 47 48 |
# File 'lib/lol/league_entry.rb', line 46 def is_fresh_blood @is_fresh_blood end |
#is_hot_streak ⇒ Boolean
Returns is currently on hot streak.
38 39 40 |
# File 'lib/lol/league_entry.rb', line 38 def is_hot_streak @is_hot_streak end |
#is_inactive ⇒ Boolean
Returns is marked as inactive.
50 51 52 |
# File 'lib/lol/league_entry.rb', line 50 def is_inactive @is_inactive end |
#is_veteran ⇒ Boolean
Returns is a veteran in this league.
42 43 44 |
# File 'lib/lol/league_entry.rb', line 42 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.
56 57 58 |
# File 'lib/lol/league_entry.rb', line 56 def last_played @last_played end |
#league_name ⇒ String
Returns name of league.
14 15 16 |
# File 'lib/lol/league_entry.rb', line 14 def league_name @league_name end |
#league_points ⇒ String
Returns league points of entry.
30 31 32 |
# File 'lib/lol/league_entry.rb', line 30 def league_points @league_points end |
#mini_series ⇒ MiniSeries
Returns if player is in a mini_series, returns the MiniSeries object representing it.
65 66 67 |
# File 'lib/lol/league_entry.rb', line 65 def mini_series @mini_series end |
#player_or_team_id ⇒ String
Returns id for the player or the team returned.
6 7 8 |
# File 'lib/lol/league_entry.rb', line 6 def player_or_team_id @player_or_team_id end |
#player_or_team_name ⇒ String
Returns name for the player or the team returned.
10 11 12 |
# File 'lib/lol/league_entry.rb', line 10 def player_or_team_name @player_or_team_name end |
#queue_type ⇒ String
Returns type of queue.
18 19 20 |
# File 'lib/lol/league_entry.rb', line 18 def queue_type @queue_type end |
#rank ⇒ String
Returns entry rank.
26 27 28 |
# File 'lib/lol/league_entry.rb', line 26 def rank @rank end |
#tier ⇒ String
Returns tier of league.
22 23 24 |
# File 'lib/lol/league_entry.rb', line 22 def tier @tier end |
#time_until_decay ⇒ Boolean
Returns time until league decay.
60 61 62 |
# File 'lib/lol/league_entry.rb', line 60 def time_until_decay @time_until_decay end |
#wins ⇒ String
Returns wins.
34 35 36 |
# File 'lib/lol/league_entry.rb', line 34 def wins @wins end |