class Fog::Compute::Ecloud::ComputePools
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/ecloud/models/compute_pools.rb, line 13 def all check_href!(:message => "the Compute Pool href of the Environment you want to enumerate") data = service.get_compute_pools(href).body[:ComputePool] load(data) end
from_data(data)
click to toggle source
# File lib/fog/compute/ecloud/models/compute_pools.rb, line 28 def from_data(data) new(data) end
get(uri)
click to toggle source
# File lib/fog/compute/ecloud/models/compute_pools.rb, line 19 def get(uri) if data = service.get_compute_pool(uri) new(data.body) end rescue ServiceError => e raise e unless e.status_code == 404 nil end