Sha256: 72860d5d7e4c5097d4ee866f93038d621e8a7ece003eab70eff1ec0f4a98dc31
Contents?: true
Size: 665 Bytes
Versions: 6
Compression:
Stored size: 665 Bytes
Contents
require 'fog/core/collection' require 'fog/compute/models/virtual_box/medium' module Fog module VirtualBox class Compute class Mediums < Fog::Collection model Fog::VirtualBox::Compute::Medium def all data = [] data.concat(connection.dvd_images) data.concat(connection.floppy_images) data.concat(connection.hard_disks) data = data.map do |medium| {:raw => medium} end load(data) end def get(medium_identity) data = connection.find_medium(medium_identity) new(:raw => data) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems