Class: RBattlenet::Wow::Character::Legacy

Inherits:
Endpoints::Base show all
Defined in:
lib/rbattlenet/endpoints/wow/character/legacy.rb

Constant Summary collapse

FIELDS =
[
  "items",
  "reputation",
  "audit",
  "statistics",
  "achievements",
  "pets",
  "pvp",
  "professions",
  "quests",
  "mounts",
  "titles",
]

Constants inherited from Endpoints::Base

Endpoints::Base::SUPPORTED_FIELDS

Class Method Summary collapse

Methods inherited from Endpoints::Base

all, find

Class Method Details

.endpointsObject



22
23
24
# File 'lib/rbattlenet/endpoints/wow/character/legacy.rb', line 22

def self.endpoints
  "fields=#{FIELDS.join("&fields=")}"
end

.path(character) ⇒ Object



18
19
20
# File 'lib/rbattlenet/endpoints/wow/character/legacy.rb', line 18

def self.path(character)
  RBattlenet.uri("wow/character/#{character[:realm]}/#{character[:name]}?#{self.endpoints}")
end