1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Brightbox] Add identifier to get_account method

This commit is contained in:
Hemant Kumar 2012-10-02 18:47:04 +05:30 committed by Paul Thornthwaite
parent 23c1e414d8
commit 0d0cf60e2e

View file

@ -3,8 +3,12 @@ module Fog
class Brightbox
class Real
def get_account
def get_account(identifier = nil)
if identifier.nil? || identifier.empty?
request("get", "/1.0/account", [200])
else
request("get", "/1.0/accounts/#{identifier}", [200])
end
end
end