Class: Bnet::Starcraft2::Career
- Inherits:
-
BnetResource
- Object
- BnetResource
- Bnet::Starcraft2::Career
- Defined in:
- lib/bnet/starcraft2/career.rb
Constant Summary collapse
- PARAMS_MAPPING =
{ 'primaryRace' => :primary_race, 'terranWins' => :terran_wins, 'protosswins' => :protoss_wins, 'zergWins' => :zerg_wins, 'highest1v1Rank' => :highest_1v1_rank, 'highestTeamRank' => :highest_team_rank, "seasonTotalGames" => :season_total_games, "careerTotalGames" => :career_total_games }
Instance Attribute Summary collapse
-
#career_total_games ⇒ Object
Returns the value of attribute career_total_games.
-
#highest_1v1_rank ⇒ Object
Returns the value of attribute highest_1v1_rank.
-
#highest_team_rank ⇒ Object
Returns the value of attribute highest_team_rank.
-
#primary_race ⇒ Object
Returns the value of attribute primary_race.
-
#protoss_wins ⇒ Object
Returns the value of attribute protoss_wins.
-
#season_total_games ⇒ Object
Returns the value of attribute season_total_games.
-
#terran_wins ⇒ Object
Returns the value of attribute terran_wins.
-
#zerg_wins ⇒ Object
Returns the value of attribute zerg_wins.
Class Method Summary collapse
Methods inherited from BnetResource
Constructor Details
This class inherits a constructor from Bnet::BnetResource
Instance Attribute Details
#career_total_games ⇒ Object
Returns the value of attribute career_total_games.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def career_total_games @career_total_games end |
#highest_1v1_rank ⇒ Object
Returns the value of attribute highest_1v1_rank.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def highest_1v1_rank @highest_1v1_rank end |
#highest_team_rank ⇒ Object
Returns the value of attribute highest_team_rank.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def highest_team_rank @highest_team_rank end |
#primary_race ⇒ Object
Returns the value of attribute primary_race.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def primary_race @primary_race end |
#protoss_wins ⇒ Object
Returns the value of attribute protoss_wins.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def protoss_wins @protoss_wins end |
#season_total_games ⇒ Object
Returns the value of attribute season_total_games.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def season_total_games @season_total_games end |
#terran_wins ⇒ Object
Returns the value of attribute terran_wins.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def terran_wins @terran_wins end |
#zerg_wins ⇒ Object
Returns the value of attribute zerg_wins.
2 3 4 |
# File 'lib/bnet/starcraft2/career.rb', line 2 def zerg_wins @zerg_wins end |
Class Method Details
.from_api(raw_response) ⇒ Object
17 18 19 20 |
# File 'lib/bnet/starcraft2/career.rb', line 17 def self.from_api(raw_response) career = super(raw_response) return career end |