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

[Openstack|Volumes] available? check method

available? simply returns whether the volume is being used or its
available. This is convenient for applications using the Fog API to
check if they can use a Volume by calling
```openstack.volumes.select(&:available)```

Renamed to ready?
This commit is contained in:
Daniel Lobato 2014-03-03 19:27:15 +01:00
parent 41072e9f7d
commit 7ba3f79224

View file

@ -40,6 +40,10 @@ module Fog
true
end
def ready?
status == 'available'
end
end
end