Class: LolApi::Team
- Inherits:
-
Object
- Object
- LolApi::Team
- Defined in:
- lib/lol_api/types/dtos/team.rb
Instance Attribute Summary collapse
-
#raw_team ⇒ Object
readonly
Returns the value of attribute raw_team.
Instance Method Summary collapse
- #bans ⇒ Object
- #baron_kills ⇒ Object
- #dragon_kills ⇒ Object
- #first_baron ⇒ Object
- #first_blood ⇒ Object
- #first_inhibitor ⇒ Object
- #first_tower ⇒ Object
- #inhibitor_kills ⇒ Object
-
#initialize(raw_team) ⇒ Team
constructor
A new instance of Team.
- #team_id ⇒ Object
- #tower_kills ⇒ Object
- #vilemaw_kills ⇒ Object
- #winner ⇒ Object
Constructor Details
#initialize(raw_team) ⇒ Team
Returns a new instance of Team.
5 6 7 |
# File 'lib/lol_api/types/dtos/team.rb', line 5 def initialize(raw_team) @raw_team = raw_team end |
Instance Attribute Details
#raw_team ⇒ Object (readonly)
Returns the value of attribute raw_team.
3 4 5 |
# File 'lib/lol_api/types/dtos/team.rb', line 3 def raw_team @raw_team end |
Instance Method Details
#bans ⇒ Object
8 9 10 |
# File 'lib/lol_api/types/dtos/team.rb', line 8 def bans raw_team['bans'] end |
#baron_kills ⇒ Object
12 13 14 |
# File 'lib/lol_api/types/dtos/team.rb', line 12 def raw_team['baronKills'] end |
#dragon_kills ⇒ Object
16 17 18 |
# File 'lib/lol_api/types/dtos/team.rb', line 16 def dragon_kills raw_team['dragonKills'] end |
#first_baron ⇒ Object
20 21 22 |
# File 'lib/lol_api/types/dtos/team.rb', line 20 def raw_team['firstBaron'] end |
#first_blood ⇒ Object
24 25 26 |
# File 'lib/lol_api/types/dtos/team.rb', line 24 def first_blood raw_team['firstBlood'] end |
#first_inhibitor ⇒ Object
28 29 30 |
# File 'lib/lol_api/types/dtos/team.rb', line 28 def first_inhibitor raw_team['firstInhibitor'] end |
#first_tower ⇒ Object
32 33 34 |
# File 'lib/lol_api/types/dtos/team.rb', line 32 def first_tower raw_team['firstTower'] end |
#inhibitor_kills ⇒ Object
36 37 38 |
# File 'lib/lol_api/types/dtos/team.rb', line 36 def inhibitor_kills raw_team['inhibitorKills'] end |
#team_id ⇒ Object
40 41 42 |
# File 'lib/lol_api/types/dtos/team.rb', line 40 def team_id raw_team['teamId'] end |
#tower_kills ⇒ Object
44 45 46 |
# File 'lib/lol_api/types/dtos/team.rb', line 44 def tower_kills raw_team['towerKills'] end |
#vilemaw_kills ⇒ Object
48 49 50 |
# File 'lib/lol_api/types/dtos/team.rb', line 48 def vilemaw_kills raw_team['vilemawKills'] end |
#winner ⇒ Object
52 53 54 |
# File 'lib/lol_api/types/dtos/team.rb', line 52 def winner raw_team['winner'] end |