Class: Battlenet::WOW::Character
- Inherits:
-
APIResponse
- Object
- APIResponse
- Battlenet::WOW::Character
- Defined in:
- lib/battlenet/modules/wow/character.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
- #achievements ⇒ Object
- #appearance ⇒ Object
- #audit ⇒ Object
- #feed ⇒ Object
- #guild ⇒ Object
- #hunter_pets ⇒ Object
-
#initialize(options = {}) ⇒ Character
constructor
A new instance of Character.
- #items ⇒ Object
- #mounts ⇒ Object
- #pet_slots ⇒ Object
- #pets ⇒ Object
- #profile ⇒ Object
- #progression ⇒ Object
- #pvp ⇒ Object
- #quests ⇒ Object
- #reputation ⇒ Object
- #stats ⇒ Object
- #talents ⇒ Object
- #titles ⇒ Object
Methods inherited from APIResponse
Constructor Details
#initialize(options = {}) ⇒ Character
Returns a new instance of Character.
5 6 7 8 9 10 11 12 |
# File 'lib/battlenet/modules/wow/character.rb', line 5 def initialize(={}) @realm = .delete(:realm) @character_name = .delete(:character_name) @endpoint = "/character/#{@realm}/#{@character_name}" super() end |
Instance Method Details
#achievements ⇒ Object
18 19 20 |
# File 'lib/battlenet/modules/wow/character.rb', line 18 def achievements get_data(@endpoint, {:fields => 'achievements'}) end |
#appearance ⇒ Object
22 23 24 |
# File 'lib/battlenet/modules/wow/character.rb', line 22 def appearance get_data(@endpoint, {:fields => 'appearance'}) end |
#audit ⇒ Object
82 83 84 |
# File 'lib/battlenet/modules/wow/character.rb', line 82 def audit get_data(@endpoint, {:fields => 'audit'}) end |
#feed ⇒ Object
26 27 28 |
# File 'lib/battlenet/modules/wow/character.rb', line 26 def feed get_data(@endpoint, {:fields => 'feed'}) end |
#guild ⇒ Object
30 31 32 |
# File 'lib/battlenet/modules/wow/character.rb', line 30 def guild get_data(@endpoint, {:fields => 'guild'}) end |
#hunter_pets ⇒ Object
34 35 36 |
# File 'lib/battlenet/modules/wow/character.rb', line 34 def hunter_pets get_data(@endpoint, {:fields => 'hunterPets'}) end |
#items ⇒ Object
42 43 44 |
# File 'lib/battlenet/modules/wow/character.rb', line 42 def items get_data(@endpoint, {:fields => 'items'}) end |
#mounts ⇒ Object
46 47 48 |
# File 'lib/battlenet/modules/wow/character.rb', line 46 def mounts get_data(@endpoint, {:fields => 'mounts'}) end |
#pet_slots ⇒ Object
50 51 52 |
# File 'lib/battlenet/modules/wow/character.rb', line 50 def pet_slots get_data(@endpoint, {:fields => 'petSlots'}) end |
#pets ⇒ Object
38 39 40 |
# File 'lib/battlenet/modules/wow/character.rb', line 38 def pets get_data(@endpoint, {:fields => 'pets'}) end |
#profile ⇒ Object
14 15 16 |
# File 'lib/battlenet/modules/wow/character.rb', line 14 def profile get_data(@endpoint, {}) end |
#progression ⇒ Object
54 55 56 |
# File 'lib/battlenet/modules/wow/character.rb', line 54 def progression get_data(@endpoint, {:fields => 'progression'}) end |
#pvp ⇒ Object
58 59 60 |
# File 'lib/battlenet/modules/wow/character.rb', line 58 def pvp get_data(@endpoint, {:fields => 'pvp'}) end |
#quests ⇒ Object
62 63 64 |
# File 'lib/battlenet/modules/wow/character.rb', line 62 def quests get_data(@endpoint, {:fields => 'quests'}) end |
#reputation ⇒ Object
66 67 68 |
# File 'lib/battlenet/modules/wow/character.rb', line 66 def reputation get_data(@endpoint, {:fields => 'reputation'}) end |
#stats ⇒ Object
70 71 72 |
# File 'lib/battlenet/modules/wow/character.rb', line 70 def stats get_data(@endpoint, {:fields => 'stats'}) end |
#talents ⇒ Object
74 75 76 |
# File 'lib/battlenet/modules/wow/character.rb', line 74 def talents get_data(@endpoint, {:fields => 'talents'}) end |
#titles ⇒ Object
78 79 80 |
# File 'lib/battlenet/modules/wow/character.rb', line 78 def titles get_data(@endpoint, {:fields => 'titles'}) end |