Class: DiabloApi::Career

Inherits:
Object
  • Object
show all
Includes:
Helper::Converter, Profiles::Career
Defined in:
lib/diablo_api/career.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tagObject (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

#dataObject (readonly)

Returns the value of attribute data.



11
12
13
# File 'lib/diablo_api/career.rb', line 11

def data
  @data
end

#localeObject (readonly)

Returns the value of attribute locale.



11
12
13
# File 'lib/diablo_api/career.rb', line 11

def locale
  @locale
end

#regionObject (readonly)

Returns the value of attribute region.



11
12
13
# File 'lib/diablo_api/career.rb', line 11

def region
  @region
end