Class: RsApi::Runemetrics
- Inherits:
-
Object
- Object
- RsApi::Runemetrics
- Includes:
- PlayerNameHelper, SkillHelper
- Defined in:
- lib/rs_api/runemetrics/runemetrics.rb
Overview
Base class regarding Runescape’s Runemetrics API
Direct Known Subclasses
Constant Summary
Constants included from SkillHelper
SkillHelper::MAX, SkillHelper::MONTHLY_XP_SKILL_ID_CONST, SkillHelper::SKILL_ID_CONST
Instance Attribute Summary collapse
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize(player_name) ⇒ Runemetrics
constructor
A new instance of Runemetrics.
Methods included from PlayerNameHelper
Constructor Details
#initialize(player_name) ⇒ Runemetrics
Returns a new instance of Runemetrics.
15 16 17 18 |
# File 'lib/rs_api/runemetrics/runemetrics.rb', line 15 def initialize(player_name) PlayerNameHelper.check_player_name(player_name) @player = player_name end |
Instance Attribute Details
#player ⇒ Object (readonly)
Returns the value of attribute player.
13 14 15 |
# File 'lib/rs_api/runemetrics/runemetrics.rb', line 13 def player @player end |