Class VirtP2V::RemovableBlockDevice
In: lib/virt-p2v/blockdevice.rb
lib/virt-p2v/blockdevice.rb
Parent: Object

Methods

[]   []   all_devices   all_devices   new   new  

Attributes

device  [R] 
device  [R] 
type  [R] 
type  [R] 

Public Class methods

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 49
49:     def self.[](device)
50:         raise NoSuchDeviceError unless @@devices.has_key?(device)
51: 
52:         @@devices[device]
53:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 49
49:     def self.[](device)
50:         raise NoSuchDeviceError unless @@devices.has_key?(device)
51: 
52:         @@devices[device]
53:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 45
45:     def self.all_devices
46:         @@devices.values
47:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 45
45:     def self.all_devices
46:         @@devices.values
47:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 57
57:     def initialize(device, type)
58:         @device = device
59:         @type = type
60: 
61:         @@devices[device] = self
62:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 57
57:     def initialize(device, type)
58:         @device = device
59:         @type = type
60: 
61:         @@devices[device] = self
62:     end

[Validate]