Browse files

Split definition of arena method out from character and guild.

  • Loading branch information...
1 parent d363627 commit 43fea8f37341f34297f18dded4825e06da3a1003 @xtian committed Dec 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 index.js
View
8 index.js
@@ -42,6 +42,12 @@ armory._get = function(path, options, callback) {
return request(options, cb)
}
+// Retrieves an object describing an arena team.
+armory.arena = function(options, callback) {
+ var path = '/arena/' + [options.realm, options.size, options.id].join('/')
+ return this._get(path, options, callback)
+}
+
// Retrieves array of auction data file URLs
armory.auction = function(options, callback) {
@@ -132,7 +138,7 @@ armory.realmStatus = function(options, callback) {
// Retrieves an API resource in the form "/method/realm/name"
-;['arena', 'character', 'guild'].forEach(function(method) {
+;['character', 'guild'].forEach(function(method) {
armory[method] = function(options, callback) {
if (Array.isArray(options.fields)) {
options.query.push('fields=' + options.fields.join())

0 comments on commit 43fea8f

Please sign in to comment.