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

Methods

new  

Attributes

manufacturer  [R] 
os  [R] 
product_name  [R] 
score  [R] 
total_score  [R] 

Public Class methods

[Source]

     # File lib/minpaso.rb, line 140
140:       def initialize(elt)
141:         elt.elements.each do |e|
142:           case e.name
143:           when "Score"; @score = e.text.to_f
144:           when "TotalScore"; @total_score = e.text.to_f
145:           when "Manufacturer"; @manufacturer = e.text
146:           when "ProductName"; @product_name = e.text
147:           when "Os"; @os = e.text
148:           end
149:         end
150:       end

[Validate]