Update constructor documentation
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 21 Jun 2014 23:18:48 +0000 (02:18 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 21 Jun 2014 23:18:48 +0000 (02:18 +0300)
lib/WWW/BackpackTF.pm

index 448ebbb10b6ed0e61c79c23dcffa3904114ea7e4..6f4535a199340c776b0ffa9b92efd6435187c6df 100644 (file)
@@ -91,9 +91,21 @@ WWW::BackpackTF is an interface to the backpack.tf Team Fortress 2/Dota 2 tradin
 
 =over
 
-=item B<new>(I<[$api_key]>)
+=item B<new>([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<key>
+
+The API key. Defaults to nothing. Most methods require an API key.
+
+=item B<base>
+
+The base URL. Defaults to http://backpack.tf/api/.
+
+=back
 
 =item B<get_prices>([I<$appid>, [I<$raw>]])
 
This page took 0.01127 seconds and 4 git commands to generate.