Class: ForemanMaintain::Utils::Disk::NilDevice

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_maintain/utils/disk/nil_device.rb

Constant Summary collapse

NULL =
'NULL'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNilDevice

Returns a new instance of NilDevice.



9
10
11
12
13
14
# File 'lib/foreman_maintain/utils/disk/nil_device.rb', line 9

def initialize
  @dir = NULL
  @name = NULL
  @unit = NULL
  @read_speed = NULL
end

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



7
8
9
# File 'lib/foreman_maintain/utils/disk/nil_device.rb', line 7

def dir
  @dir
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/foreman_maintain/utils/disk/nil_device.rb', line 7

def name
  @name
end

#read_speedObject

Returns the value of attribute read_speed.



7
8
9
# File 'lib/foreman_maintain/utils/disk/nil_device.rb', line 7

def read_speed
  @read_speed
end

#unitObject

Returns the value of attribute unit.



7
8
9
# File 'lib/foreman_maintain/utils/disk/nil_device.rb', line 7

def unit
  @unit
end