Class: DiskHandler::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/disk_reporter/disk_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



130
131
132
133
# File 'lib/disk_reporter/disk_handler.rb', line 130

def initialize
  self.devices = []
  populate
end

Instance Attribute Details

#devicesObject

Returns the value of attribute devices.



129
130
131
# File 'lib/disk_reporter/disk_handler.rb', line 129

def devices
  @devices
end

Instance Method Details

#to_hObject



136
137
138
# File 'lib/disk_reporter/disk_handler.rb', line 136

def to_h
  { disks: devices }
end