Class: LeagueOfLegends::DTO::TeamStatSummary
- Inherits:
-
Object
- Object
- LeagueOfLegends::DTO::TeamStatSummary
- Defined in:
- lib/league_of_legends/dto/team_stat_summary.rb
Instance Attribute Summary collapse
-
#full_id ⇒ Object
readonly
Returns the value of attribute full_id.
-
#team_stat_details ⇒ Object
readonly
Returns the value of attribute team_stat_details.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TeamStatSummary
constructor
A new instance of TeamStatSummary.
Constructor Details
#initialize(attributes) ⇒ TeamStatSummary
Returns a new instance of TeamStatSummary.
11 12 13 14 15 16 17 18 |
# File 'lib/league_of_legends/dto/team_stat_summary.rb', line 11 def initialize attributes return if attributes.nil? @full_id = attributes[:fullId] @team_stat_details = attributes[:teamStatDetails].map do |detail| ::LeagueOfLegends::DTO::TeamStatDetail.new(detail) end end |
Instance Attribute Details
#full_id ⇒ Object (readonly)
Returns the value of attribute full_id.
9 10 11 |
# File 'lib/league_of_legends/dto/team_stat_summary.rb', line 9 def full_id @full_id end |
#team_stat_details ⇒ Object (readonly)
Returns the value of attribute team_stat_details.
9 10 11 |
# File 'lib/league_of_legends/dto/team_stat_summary.rb', line 9 def team_stat_details @team_stat_details end |
Class Method Details
.version ⇒ Object
5 6 7 |
# File 'lib/league_of_legends/dto/team_stat_summary.rb', line 5 def self.version ::LeagueOfLegends::DTO::Team.version end |