lib/lumberg/whm/reseller.rb in lumberg-1.1.1 vs lib/lumberg/whm/reseller.rb in lumberg-2.0.0.pre3
- old
+ new
@@ -13,11 +13,11 @@
end
# Lists the usernames of all resellers on the server
def list
# This method is funky. That is all
- result = server.perform_request('listresellers', :key => 'reseller')
+ result = server.perform_request('listresellers', :response_key => 'reseller')
result[:success] = true
result[:params] = {:resellers => result.delete(:params)}
result
end
@@ -113,11 +113,11 @@
#
# ==== Required
# * <tt>:username</tt> - PENDING
def account_counts(options = {})
options[:user] = options.delete(:username)
- server.perform_request('acctcounts', options.merge(:key => 'reseller'))
+ server.perform_request('acctcounts', options.merge(:response_key => 'reseller'))
end
# Defines a reseller's nameservers. Additionally, you may use it to reset a reseller's nameservers to the default settings
#
# ==== Required
@@ -138,18 +138,18 @@
server.perform_request('resellerstats', options)
end
# Lists the saved reseller ACL lists on the server
def list_acls
- server.perform_request('listacls', {:key => 'acls'})
+ server.perform_request('listacls', {:response_key => 'acls'})
end
# Creates a new reseller ACL list
#
# ==== Required
# * <tt>:acllist</tt> - PENDING
def save_acl_list(options = {})
- server.perform_request('saveacllist', options.merge(:key => 'results'))
+ server.perform_request('saveacllist', options.merge(:response_key => 'results'))
end
# Sets the ACL for a reseller, or modifies specific ACL items for a reseller
#
# ==== Required