Sha256: 77f8f326bf875ac638b39629b2914e400383a109a9d84a79a3847e6c81c43958
Contents?: true
Size: 884 Bytes
Versions: 42
Compression:
Stored size: 884 Bytes
Contents
require 'fog/core/collection' require 'fog/virtual_box/models/compute/storage_controller' module Fog module Compute class VirtualBox class StorageControllers < Fog::Collection model Fog::Compute::VirtualBox::StorageController attr_accessor :machine def all requires :machine data = machine.instance_variable_get(:@raw).storage_controllers.map do |storage_controller| {:raw => storage_controller} end load(data) end def get(storage_controller_name) requires :machine all.detect do |storage_controller| storage_controller.name == storage_controller_name end end def new(attributes = {}) requires :machine super({ :machine => machine }.merge!(attributes)) end end end end end
Version data entries
42 entries across 42 versions & 13 rubygems