Class: LeagueOfLegends::DTO::TeamStatDetail
- Inherits:
-
Object
- Object
- LeagueOfLegends::DTO::TeamStatDetail
- Defined in:
- lib/league_of_legends/dto/team_stat_detail.rb
Instance Attribute Summary collapse
-
#average_games_played ⇒ Object
readonly
Returns the value of attribute average_games_played.
-
#full_id ⇒ Object
readonly
Returns the value of attribute full_id.
-
#losses ⇒ Object
readonly
Returns the value of attribute losses.
-
#team_stat_type ⇒ Object
readonly
Returns the value of attribute team_stat_type.
-
#wins ⇒ Object
readonly
Returns the value of attribute wins.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TeamStatDetail
constructor
A new instance of TeamStatDetail.
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_played ⇒ Object (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_id ⇒ Object (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 |
#losses ⇒ Object (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_type ⇒ Object (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 |
#wins ⇒ Object (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
.version ⇒ Object
5 6 7 |
# File 'lib/league_of_legends/dto/team_stat_detail.rb', line 5 def self.version ::LeagueOfLegends::DTO::Team.version end |