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 67
67:     def self.[](device)
68:         raise NoSuchDeviceError unless @@devices.has_key?(device)
69: 
70:         @@devices[device]
71:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 67
67:     def self.[](device)
68:         raise NoSuchDeviceError unless @@devices.has_key?(device)
69: 
70:         @@devices[device]
71:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 63
63:     def self.all_devices
64:         @@devices.values
65:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 63
63:     def self.all_devices
64:         @@devices.values
65:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 75
75:     def initialize(device, type)
76:         @device = device
77:         @type = type
78: 
79:         @@devices[device] = self
80:     end

[Source]

    # File lib/virt-p2v/blockdevice.rb, line 75
75:     def initialize(device, type)
76:         @device = device
77:         @type = type
78: 
79:         @@devices[device] = self
80:     end

[Validate]