Class: Bnet::Starcraft2::Career

Inherits:
BnetResource show all
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

Class Method Summary collapse

Methods inherited from BnetResource

#initialize

Constructor Details

This class inherits a constructor from Bnet::BnetResource

Instance Attribute Details

#career_total_gamesObject

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_rankObject

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_rankObject

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_raceObject

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_winsObject

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_gamesObject

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_winsObject

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_winsObject

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