class Elvarg::Hiscores::Skill

Represents a Skill on the Hiscores

Attributes

exp[R]

@return [Integer] The experience of the Skill the Player has on the Hiscores

level[R]

@return [Integer] The level of the Skill the Player has on the Hiscores

rank[R]

@return [Integer] The rank of the Skill the Player has on the Hiscores

Public Class Methods

new(symbol, id = 0, rank = -1, level = 1, exp = 0) click to toggle source

Creates a Hiscores Skill object

@see Stats::SKILLS @see Stats::Skill#initialize @param symbol [Symbol] the Symbol of the Skill (required)

see Stats::SKILLS for complete list

@param id [Integer] the unique id of the Skill (default) 0 @param rank [Integer] the Player's rank in this Skill (default) -1 @param level [Integer] the Player's level in this Skill (default) 1 @param exp [Integer] the Player's experience in this Skill (default) 0

Calls superclass method
# File lib/hiscores/skill.rb, line 26
def initialize(symbol, id = 0, rank = -1, level = 1, exp = 0)
  super(symbol, id)
  @rank = rank
  @level = level
  @exp = exp
end