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

#divisionString

Returns the league division of the participant.

Returns:

  • (String)

    the league division of the participant



6
7
8
# File 'lib/lol/league_entry.rb', line 6

def division
  @division
end

#is_fresh_bloodBoolean

Returns is fresh blood in this league.

Returns:

  • (Boolean)

    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_streakBoolean

Returns is currently on hot streak.

Returns:

  • (Boolean)

    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_inactiveBoolean

Returns is marked as inactive.

Returns:

  • (Boolean)

    is marked as inactive



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

def is_inactive
  @is_inactive
end

#is_veteranBoolean

Returns is a veteran in this league.

Returns:

  • (Boolean)

    is a veteran in this league



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

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.



53
54
55
# File 'lib/lol/league_entry.rb', line 53

def last_played
  @last_played
end

#league_pointsString

Returns league points of entry.

Returns:

  • (String)

    league points of entry



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

def league_points
  @league_points
end

#lossesString

Returns losses.

Returns:

  • (String)

    losses



47
48
49
# File 'lib/lol/league_entry.rb', line 47

def losses
  @losses
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



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

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



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

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



39
40
41
# File 'lib/lol/league_entry.rb', line 39

def player_or_team_name
  @player_or_team_name
end

#time_until_decayBoolean

Returns time until league decay.

Returns:

  • (Boolean)

    time until league decay



57
58
59
# File 'lib/lol/league_entry.rb', line 57

def time_until_decay
  @time_until_decay
end

#winsString

Returns wins.

Returns:

  • (String)

    wins



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

def wins
  @wins
end