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

[hp|network] Add a ready? method to the network model.

This commit is contained in:
Rupak Ganguly 2013-04-12 17:12:33 -04:00
parent edb5bdc1b7
commit 9bc342f991

View file

@ -21,6 +21,10 @@ module Fog
true
end
def ready?
self.status == 'ACTIVE'
end
def save
identity ? update : create
end