Class: Lol::LeagueEntry

Inherits:
Model
  • Object
show all
Defined in:
lib/lol/league_entry.rb

Overview

Holds the representation of a League

Instance Attribute Summary collapse

Attributes inherited from Model

#raw

Method Summary

Methods inherited from Model

#initialize, #inspect

Constructor Details

This class inherits a constructor from Lol::Model

Instance Attribute Details

#entry tier(tier) ⇒ String (readonly)

Returns tier of league.

Returns:

  • (String)

    tier of league



22
# File 'lib/lol/league_entry.rb', line 22

attr_reader :tier

#is_fresh_bloodBoolean

Returns is fresh blood in this league.

Returns:

  • (Boolean)

    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_streakBoolean

Returns is currently on hot streak.

Returns:

  • (Boolean)

    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_inactiveBoolean

Returns is marked as inactive.

Returns:

  • (Boolean)

    is marked as inactive



50
51
52
# File 'lib/lol/league_entry.rb', line 50

def is_inactive
  @is_inactive
end

#is_veteranBoolean

Returns is a veteran in this league.

Returns:

  • (Boolean)

    is a veteran in this league



42
43
44
# File 'lib/lol/league_entry.rb', line 42

def is_veteran
  @is_veteran
end

#last_playedDateTime

Returns date of last played game at the time of writing this attributes is broken in the API it always returns 0.

Returns:

  • (DateTime)

    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_nameString

Returns name of league.

Returns:

  • (String)

    name of league



14
15
16
# File 'lib/lol/league_entry.rb', line 14

def league_name
  @league_name
end

#league_pointsString

Returns league points of entry.

Returns:

  • (String)

    league points of entry



30
31
32
# File 'lib/lol/league_entry.rb', line 30

def league_points
  @league_points
end

#mini_seriesMiniSeries

Returns if player is in a mini_series, returns the MiniSeries object representing it.

Returns:

  • (MiniSeries)

    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_idString

Returns id for the player or the team returned.

Returns:

  • (String)

    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_nameString

Returns name for the player or the team returned.

Returns:

  • (String)

    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_typeString

Returns type of queue.

Returns:

  • (String)

    type of queue



18
19
20
# File 'lib/lol/league_entry.rb', line 18

def queue_type
  @queue_type
end

#rankString

Returns entry rank.

Returns:

  • (String)

    entry rank



26
27
28
# File 'lib/lol/league_entry.rb', line 26

def rank
  @rank
end

#tierString

Returns tier of league.

Returns:

  • (String)

    tier of league



22
23
24
# File 'lib/lol/league_entry.rb', line 22

def tier
  @tier
end

#time_until_decayBoolean

Returns time until league decay.

Returns:

  • (Boolean)

    time until league decay



60
61
62
# File 'lib/lol/league_entry.rb', line 60

def time_until_decay
  @time_until_decay
end

#winsString

Returns wins.

Returns:

  • (String)

    wins



34
35
36
# File 'lib/lol/league_entry.rb', line 34

def wins
  @wins
end