Class Minpaso::SearchResultPager::Item
In: lib/minpaso.rb
Parent: Object

Methods

new   pcinfo  

Attributes

cpu_score  [R] 
game_score  [R] 
hdd_score  [R] 
id  [R] 
manufacture  [R] 
memory_score  [R] 
product_name  [R] 
total_score  [R] 
video_score  [R] 
wei_score  [R] 

Public Class methods

[Source]

    # File lib/minpaso.rb, line 62
62:       def initialize(elt)
63:         elt.elements.each do |e|
64:           case e.name
65:           when "ItemId"; @id = e.text.to_i
66:           when "Manufacture"; @manufacture = e.text
67:           when "ProductName"; @product_name = e.text
68:           when "WeiScore"; @wei_score = e.text.to_f
69:           when "CpuScore"; @cpu_score = e.text.to_f
70:           when "MemoryScore"; @memory_score = e.text.to_f
71:           when "VideoScore"; @video_score = e.text.to_f
72:           when "GameScore"; @game_score = e.text.to_f
73:           when "HddScore"; @hdd_score = e.text.to_f
74:           when "TotalScore"; @total_score = e.text.to_f
75:           end
76:         end
77:       end

Public Instance methods

Qeury the PC detail informations.

[Source]

    # File lib/minpaso.rb, line 80
80:       def pcinfo(guess_score = true)
81:         Minpaso::PCInfo.new(@id, guess_score)
82:       end

[Validate]