Class: BlizzardApi::Wow::CharacterProfile
- Includes:
- Slug
- Defined in:
- lib/blizzard_api_rb/wow/profile/character_profile.rb
Overview
This class allows access to World of Warcraft character profile data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.achievement
Constant Summary
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#achievement_statistics(realm, character, **options) ⇒ Hash
Return character achievements statistics.
-
#achievements(realm, character, **options) ⇒ Hash
Return character achievements.
-
#appearance(realm, character, **options) ⇒ Hash
Return character appearance.
-
#collections(realm, character, **options) ⇒ Hash
Return a character’s collections.
-
#dungeons(realm, character, **options) ⇒ Hash
Return a character’s dungeon progress.
-
#encounters(realm, character, **options) ⇒ Hash
Return a character’s encounter summary.
-
#equipment(realm, character, **options) ⇒ Hash
Return character equipment.
-
#get(realm, character, **options) ⇒ Hash
Return character basic data.
-
#heirlooms(realm, character, **options) ⇒ Hash
Return a character’s heirloom collection.
-
#hunter_pets(realm, character, **options) ⇒ Hash
Return a character’s hunter pets.
-
#media(realm, character, **options) ⇒ Hash
Return character media.
-
#mounts(realm, character, **options) ⇒ Hash
Return a character’s mount collection.
-
#mythic_keystone_profile(realm, character, **options) ⇒ Hash
Return the mythic keystone profile of a character.
-
#mythic_keystone_seasons(realm, character, season = nil, **options) ⇒ Hash
Return the mythic keystone profile of a character.
-
#pets(realm, character, **options) ⇒ Hash
Return a character’s pet collection.
-
#professions(realm, character, **options) ⇒ Hash
Return professions from a character.
-
#pvp_bracket(realm, character, bracket, **options) ⇒ Hash
Return the pvp bracket of a character.
-
#pvp_summary(realm, character, **options) ⇒ Hash
Return the pvp summary of a character.
-
#quests(realm, character, **options) ⇒ Hash
Return a character’s quests.
-
#raids(realm, character, **options) ⇒ Hash
Return a character’s raid progress.
-
#reputation(realm, character, **options) ⇒ Hash
Return a character’s reputations.
-
#soulbinds(realm, character, **options) ⇒ Hash
Return a character’s soulbinds.
-
#specializations(realm, character, **options) ⇒ Hash
Return a character’s specialization.
-
#statistics(realm, character, **options) ⇒ Hash
Return a character’s statistics.
-
#status(realm, character, **options) ⇒ Hash
Return character status.
-
#titles(realm, character, **options) ⇒ Hash
Return a character’s titles.
-
#toys(realm, character, **options) ⇒ Hash
Return a character’s toy collection.
Methods included from Slug
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Wow::Request
Instance Method Details
#achievement_statistics(realm, character, **options) ⇒ Hash
Return character achievements statistics
in the configuration module
53 54 55 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 53 def achievement_statistics(realm, character, **) character_request realm, character, 'achievements/statistics', ** end |
#achievements(realm, character, **options) ⇒ Hash
Return character achievements
in the configuration module
39 40 41 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 39 def achievements(realm, character, **) character_request realm, character, 'achievements', ** end |
#appearance(realm, character, **options) ⇒ Hash
Return character appearance
in the configuration module
67 68 69 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 67 def appearance(realm, character, **) character_request realm, character, 'appearance', ** end |
#collections(realm, character, **options) ⇒ Hash
Return a character’s collections
in the configuration module
81 82 83 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 81 def collections(realm, character, **) character_request realm, character, 'collections', ** end |
#dungeons(realm, character, **options) ⇒ Hash
Return a character’s dungeon progress
in the configuration module
165 166 167 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 165 def dungeons(realm, character, **) character_request realm, character, 'encounters/dungeons', ** end |
#encounters(realm, character, **options) ⇒ Hash
Return a character’s encounter summary
in the configuration module
151 152 153 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 151 def encounters(realm, character, **) character_request realm, character, 'encounters', ** end |
#equipment(realm, character, **options) ⇒ Hash
Return character equipment
in the configuration module
193 194 195 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 193 def equipment(realm, character, **) character_request realm, character, 'equipment', ** end |
#get(realm, character, **options) ⇒ Hash
Return character basic data
in the configuration module
25 26 27 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 25 def get(realm, character, **) character_request realm, character, ** end |
#heirlooms(realm, character, **options) ⇒ Hash
Return a character’s heirloom collection
in the configuration module
137 138 139 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 137 def heirlooms(realm, character, **) character_request realm, character, 'collections/heirlooms', ** end |
#hunter_pets(realm, character, **options) ⇒ Hash
Return a character’s hunter pets
in the configuration module
207 208 209 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 207 def hunter_pets(realm, character, **) character_request realm, character, 'hunter-pets', ** end |
#media(realm, character, **options) ⇒ Hash
Return character media
in the configuration module
221 222 223 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 221 def media(realm, character, **) character_request realm, character, 'character-media', ** end |
#mounts(realm, character, **options) ⇒ Hash
Return a character’s mount collection
in the configuration module
109 110 111 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 109 def mounts(realm, character, **) character_request realm, character, 'collections/mounts', ** end |
#mythic_keystone_profile(realm, character, **options) ⇒ Hash
Return the mythic keystone profile of a character
in the configuration module
235 236 237 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 235 def mythic_keystone_profile(realm, character, **) character_request realm, character, 'mythic-keystone-profile', ** end |
#mythic_keystone_seasons(realm, character, season = nil, **options) ⇒ Hash
Return the mythic keystone profile of a character
in the configuration module
250 251 252 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 250 def mythic_keystone_seasons(realm, character, season = nil, **) character_request realm, character, "mythic-keystone-profile/season/#{season}", ** end |
#pets(realm, character, **options) ⇒ Hash
Return a character’s pet collection
in the configuration module
95 96 97 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 95 def pets(realm, character, **) character_request realm, character, 'collections/pets', ** end |
#professions(realm, character, **options) ⇒ Hash
Return professions from a character
in the configuration module
264 265 266 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 264 def professions(realm, character, **) character_request realm, character, 'professions', ** end |
#pvp_bracket(realm, character, bracket, **options) ⇒ Hash
Return the pvp bracket of a character
in the configuration module
294 295 296 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 294 def pvp_bracket(realm, character, bracket, **) character_request realm, character, "pvp-bracket/#{bracket}", ** end |
#pvp_summary(realm, character, **options) ⇒ Hash
Return the pvp summary of a character
in the configuration module
308 309 310 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 308 def pvp_summary(realm, character, **) character_request realm, character, 'pvp-summary', ** end |
#quests(realm, character, **options) ⇒ Hash
Return a character’s quests
in the configuration module
323 324 325 326 327 328 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 323 def quests(realm, character, **) completed = .delete(:completed) || false return character_request realm, character, 'quests/completed', ** if completed character_request realm, character, 'quests', ** end |
#raids(realm, character, **options) ⇒ Hash
Return a character’s raid progress
in the configuration module
179 180 181 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 179 def raids(realm, character, **) character_request realm, character, 'encounters/raids', ** end |
#reputation(realm, character, **options) ⇒ Hash
Return a character’s reputations
in the configuration module
340 341 342 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 340 def reputation(realm, character, **) character_request realm, character, 'reputations', ** end |
#soulbinds(realm, character, **options) ⇒ Hash
Return a character’s soulbinds
in the configuration module
354 355 356 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 354 def soulbinds(realm, character, **) character_request realm, character, 'soulbinds', ** end |
#specializations(realm, character, **options) ⇒ Hash
Return a character’s specialization
in the configuration module
368 369 370 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 368 def specializations(realm, character, **) character_request realm, character, 'specializations', ** end |
#statistics(realm, character, **options) ⇒ Hash
Return a character’s statistics
in the configuration module
382 383 384 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 382 def statistics(realm, character, **) character_request realm, character, 'statistics', ** end |
#status(realm, character, **options) ⇒ Hash
Return character status
in the configuration module
279 280 281 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 279 def status(realm, character, **) character_request realm, character, 'status', ** end |
#titles(realm, character, **options) ⇒ Hash
Return a character’s titles
in the configuration module
396 397 398 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 396 def titles(realm, character, **) character_request realm, character, 'titles', ** end |
#toys(realm, character, **options) ⇒ Hash
Return a character’s toy collection
in the configuration module
123 124 125 |
# File 'lib/blizzard_api_rb/wow/profile/character_profile.rb', line 123 def toys(realm, character, **) character_request realm, character, 'collections/toys', ** end |