Class: LeagueOfLegends::DTO::TeamStatSummary

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_idObject (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_detailsObject (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

.versionObject



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

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