Class Minpaso::PCInfo::HDD
In: lib/minpaso.rb
Parent: Object

Methods

new  

Attributes

primary_free_space  [R] 
primary_size  [R] 
score  [R] 
total_size  [R] 

Public Class methods

[Source]

     # File lib/minpaso.rb, line 199
199:       def initialize(elt)
200:         elt.elements.each do |e|
201:           case e.name
202:           when "Score"; @score = e.text.to_f
203:           when "PrimarySize"; @primary_size = e.text.to_i.byte
204:           when "PrimaryFreeSpace"; @primary_free_space = e.text.to_i.byte
205:           when "TotalSize"; @total_size = e.text.to_i.byte
206:           end
207:         end
208:       end

[Validate]