Class: KPM::SystemProxy::DiskSpaceInformation
- Inherits:
-
Object
- Object
- KPM::SystemProxy::DiskSpaceInformation
- Defined in:
- lib/kpm/system_helpers/disk_space_information.rb
Instance Attribute Summary collapse
-
#disk_space_info ⇒ Object
readonly
Returns the value of attribute disk_space_info.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Instance Method Summary collapse
-
#initialize ⇒ DiskSpaceInformation
constructor
A new instance of DiskSpaceInformation.
Constructor Details
#initialize ⇒ DiskSpaceInformation
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_info ⇒ Object (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 |
#labels ⇒ Object (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 |