Class: ApplicationRecommendationClassCaller

Inherits:
Object
  • Object
show all
Defined in:
lib/applicationrecommendation.rb

Overview

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ApplicationRecommendationClassCaller

Returns a new instance of ApplicationRecommendationClassCaller.



61
62
63
# File 'lib/applicationrecommendation.rb', line 61

def initialize type
    @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



59
60
61
# File 'lib/applicationrecommendation.rb', line 59

def type
  @type
end

Instance Method Details

#generate(result1, result2) ⇒ Object



65
66
67
# File 'lib/applicationrecommendation.rb', line 65

def generate(result1,result2)
    @type.recommends(result1,result2)
end