aggcat 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aggcat/client.rb +4 -2
- data/lib/aggcat/version.rb +1 -1
- metadata +1 -1
data/lib/aggcat/client.rb
CHANGED
@@ -68,8 +68,10 @@ module Aggcat
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def delete_customer
|
71
|
-
accounts[:result][:account_list]
|
72
|
-
|
71
|
+
if accounts[:result][:account_list]
|
72
|
+
accounts[:result][:account_list].values.flatten.each do |account|
|
73
|
+
delete_account(account[:account_id])
|
74
|
+
end
|
73
75
|
end
|
74
76
|
delete('/customers')
|
75
77
|
end
|
data/lib/aggcat/version.rb
CHANGED