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:
parent
23c1e414d8
commit
0d0cf60e2e
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue