Class: Battlenet::WOW::Character

Inherits:
APIResponse show all
Defined in:
lib/battlenet/modules/wow/character.rb

Instance Attribute Summary

Attributes inherited from APIResponse

#data

Instance Method Summary collapse

Methods inherited from APIResponse

#get_data

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(options={})
  @realm          = options.delete(:realm)
  @character_name = options.delete(:character_name)

  @endpoint       = "/character/#{@realm}/#{@character_name}"

  super(options)
end

Instance Method Details

#achievementsObject



18
19
20
# File 'lib/battlenet/modules/wow/character.rb', line 18

def achievements
  get_data(@endpoint, {:fields => 'achievements'})
end

#appearanceObject



22
23
24
# File 'lib/battlenet/modules/wow/character.rb', line 22

def appearance
  get_data(@endpoint, {:fields => 'appearance'})
end

#auditObject



82
83
84
# File 'lib/battlenet/modules/wow/character.rb', line 82

def audit
  get_data(@endpoint, {:fields => 'audit'})
end

#feedObject



26
27
28
# File 'lib/battlenet/modules/wow/character.rb', line 26

def feed
  get_data(@endpoint, {:fields => 'feed'})
end

#guildObject



30
31
32
# File 'lib/battlenet/modules/wow/character.rb', line 30

def guild
  get_data(@endpoint, {:fields => 'guild'})
end

#hunter_petsObject



34
35
36
# File 'lib/battlenet/modules/wow/character.rb', line 34

def hunter_pets
  get_data(@endpoint, {:fields => 'hunterPets'})
end

#itemsObject



42
43
44
# File 'lib/battlenet/modules/wow/character.rb', line 42

def items
  get_data(@endpoint, {:fields => 'items'})
end

#mountsObject



46
47
48
# File 'lib/battlenet/modules/wow/character.rb', line 46

def mounts
  get_data(@endpoint, {:fields => 'mounts'})
end

#pet_slotsObject



50
51
52
# File 'lib/battlenet/modules/wow/character.rb', line 50

def pet_slots
  get_data(@endpoint, {:fields => 'petSlots'})
end

#petsObject



38
39
40
# File 'lib/battlenet/modules/wow/character.rb', line 38

def pets
  get_data(@endpoint, {:fields => 'pets'})
end

#profileObject



14
15
16
# File 'lib/battlenet/modules/wow/character.rb', line 14

def profile
  get_data(@endpoint, {})
end

#progressionObject



54
55
56
# File 'lib/battlenet/modules/wow/character.rb', line 54

def progression
  get_data(@endpoint, {:fields => 'progression'})
end

#pvpObject



58
59
60
# File 'lib/battlenet/modules/wow/character.rb', line 58

def pvp
  get_data(@endpoint, {:fields => 'pvp'})
end

#questsObject



62
63
64
# File 'lib/battlenet/modules/wow/character.rb', line 62

def quests
  get_data(@endpoint, {:fields => 'quests'})
end

#reputationObject



66
67
68
# File 'lib/battlenet/modules/wow/character.rb', line 66

def reputation
  get_data(@endpoint, {:fields => 'reputation'})
end

#statsObject



70
71
72
# File 'lib/battlenet/modules/wow/character.rb', line 70

def stats
  get_data(@endpoint, {:fields => 'stats'})
end

#talentsObject



74
75
76
# File 'lib/battlenet/modules/wow/character.rb', line 74

def talents
  get_data(@endpoint, {:fields => 'talents'})
end

#titlesObject



78
79
80
# File 'lib/battlenet/modules/wow/character.rb', line 78

def titles
  get_data(@endpoint, {:fields => 'titles'})
end