Sha256: d42b1cced65187e4a61fdad93d1bc5cd2668f3467e5fe152bd255b068edf0ff9
Contents?: true
Size: 560 Bytes
Versions: 6
Compression:
Stored size: 560 Bytes
Contents
require File.expand_path("../detached_disk", __FILE__) module Fog module Compute class Ecloud class DetachedDisks < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::DetachedDisk def all data = service.get_detached_disks(href).body[:DetachedDisk] data = [] if data.nil? load(data) end def get(uri) data = service.get_detached_disk(uri).body new(data) rescue Fog::Errors::NotFound nil end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems