Class: DiabloApi::Career
- Inherits:
-
Object
- Object
- DiabloApi::Career
- Includes:
- Helper::Converter, Profiles::Career
- Defined in:
- lib/diablo_api/career.rb
Instance Attribute Summary collapse
-
#battle_tag ⇒ Object
readonly
Returns the value of attribute battle_tag.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(region, locale, battle_tag) ⇒ Career
constructor
A new instance of Career.
Methods included from Helper::Converter
#convert_hash_keys, #underscore_key
Methods included from Profiles::Career
#blacksmith, #blacksmith_hardcore, #blacksmith_season, #fallen_heroes, #guild_name, #heroes, #highest_hardcore_level, #jeweler, #jeweler_hardcore, #jeweler_season, #kills, #last_hero_played, #last_updated, #main_data, #mystic, #mystic_hardcore, #mystic_season, #paragon_level, #paragon_level_hardcore, #paragon_level_season, #paragon_level_season_hardcore, #progression, #seasonal_profiles, #time_played
Constructor Details
#initialize(region, locale, battle_tag) ⇒ Career
Returns a new instance of Career.
13 14 15 16 17 18 |
# File 'lib/diablo_api/career.rb', line 13 def initialize(region, locale, battle_tag) @region = region @locale = locale @battle_tag = battle_tag fetch end |
Instance Attribute Details
#battle_tag ⇒ Object (readonly)
Returns the value of attribute battle_tag.
11 12 13 |
# File 'lib/diablo_api/career.rb', line 11 def battle_tag @battle_tag end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/diablo_api/career.rb', line 11 def data @data end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
11 12 13 |
# File 'lib/diablo_api/career.rb', line 11 def locale @locale end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
11 12 13 |
# File 'lib/diablo_api/career.rb', line 11 def region @region end |