Class: LeagueOfLegends::DTO::TeamStatDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/league_of_legends/dto/team_stat_detail.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ TeamStatDetail

Returns a new instance of TeamStatDetail.



11
12
13
14
15
16
17
18
19
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 11

def initialize attributes
  return if attributes.nil?

  @average_games_played = attributes[:averageGamesPlayed]
  @full_id = attributes[:fullId]
  @losses = attributes[:losses]
  @team_stat_type = attributes[:teamStatType]
  @wins = attributes[:wins]
end

Instance Attribute Details

#average_games_playedObject (readonly)

Returns the value of attribute average_games_played.



9
10
11
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 9

def average_games_played
  @average_games_played
end

#full_idObject (readonly)

Returns the value of attribute full_id.



9
10
11
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 9

def full_id
  @full_id
end

#lossesObject (readonly)

Returns the value of attribute losses.



9
10
11
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 9

def losses
  @losses
end

#team_stat_typeObject (readonly)

Returns the value of attribute team_stat_type.



9
10
11
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 9

def team_stat_type
  @team_stat_type
end

#winsObject (readonly)

Returns the value of attribute wins.



9
10
11
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 9

def wins
  @wins
end

Class Method Details

.versionObject



5
6
7
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 5

def self.version
  ::LeagueOfLegends::DTO::Team.version
end