From 1115e95d6466b1d684cdfb72fdd1e510ca09e228 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 22 Jun 2014 02:18:48 +0300 Subject: [PATCH] Update constructor documentation --- lib/WWW/BackpackTF.pm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/WWW/BackpackTF.pm b/lib/WWW/BackpackTF.pm index 448ebbb..6f4535a 100644 --- a/lib/WWW/BackpackTF.pm +++ b/lib/WWW/BackpackTF.pm @@ -91,9 +91,21 @@ WWW::BackpackTF is an interface to the backpack.tf Team Fortress 2/Dota 2 tradin =over -=item B(I<[$api_key]>) +=item B([key => I<$api_key>], [base => I<$base_url>]) -Create a new WWW::BackpackTF object. Takes a single optional parameter, the API key. +Create a new WWW::BackpackTF object. Takes a hash of parameters. Possible parameters: + +=over + +=item B + +The API key. Defaults to nothing. Most methods require an API key. + +=item B + +The base URL. Defaults to http://backpack.tf/api/. + +=back =item B([I<$appid>, [I<$raw>]]) -- 2.39.2