Class: ApplicationRecommendationClass
- Defined in:
- lib/applicationrecommendation.rb
Instance Method Summary collapse
Methods inherited from UserClass
Instance Method Details
#recommends(result, result2) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/applicationrecommendation.rb', line 37 def recommends(result,result2) @resultArray = result @resultArray.each do |t| #puts "#{t.person_id}===>#{t.category_id}===>#{t.count}" if(t.count>@temp) # puts @temp @temp = t.count @tempObject = t # puts @temp end end #puts "temperary object ====> #{@tempObject.person_id}, #{@tempObject.category_id}, #{@tempObject.count}" puts @tempObject return @tempObject end |