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

Methods

new  

Attributes

adapter  [R] 
dedicated_system_memory  [R] 
dedicated_video_memory  [R] 
driver_version  [R] 
game_score  [R] 
shared_system_memory  [R] 
total_graphics_memory  [R] 
video_score  [R] 

Public Class methods

[Source]

     # File lib/minpaso.rb, line 181
181:       def initialize(elt)
182:         elt.elements.each do |e|
183:           case e.name
184:           when "VideoScore"; @video_score = e.text.to_f
185:           when "GameScore"; @game_score = e.text.to_f
186:           when "Adapter"; @adapter = e.text
187:           when "DriverVersion"; @driver_version = e.text
188:           when "TotalGraphicsMemory"; @total_graphics_memory = e.text.to_i.byte
189:           when "DedicatedVideoMemory"; @dedicated_video_memory = e.text.to_i.byte
190:           when "DedicatedSystemMemory"; @dedicated_system_memory = e.text.to_i.byte
191:           when "SharedSystemMemory"; @shared_system_memory = e.text.to_i.byte
192:           end
193:         end
194:       end

[Validate]