Class: RBattlenet::Wow::Character::Legacy
Constant Summary
collapse
- FIELDS =
[
"items",
"reputation",
"audit",
"statistics",
"achievements",
"pets",
"pvp",
"professions",
"quests",
"mounts",
"titles",
]
Endpoints::Base::SUPPORTED_FIELDS
Class Method Summary
collapse
all, find
Class Method Details
.endpoints ⇒ Object
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
|