Class: KPM::SystemProxy::DiskSpaceInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/kpm/system_helpers/disk_space_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiskSpaceInformation

Returns a new instance of DiskSpaceInformation.



8
9
10
11
12
13
# File 'lib/kpm/system_helpers/disk_space_information.rb', line 8

def initialize
  data_keys = []
  @disk_space_info = fetch(data_keys)
  @labels = []
  data_keys.each { |key| @labels.push(label: key.gsub(' ', '_').to_sym) }
end

Instance Attribute Details

#disk_space_infoObject (readonly)

Returns the value of attribute disk_space_info.



6
7
8
# File 'lib/kpm/system_helpers/disk_space_information.rb', line 6

def disk_space_info
  @disk_space_info
end

#labelsObject (readonly)

Returns the value of attribute labels.



6
7
8
# File 'lib/kpm/system_helpers/disk_space_information.rb', line 6

def labels
  @labels
end