Class: ApplicationRecommendationClassCaller
- Inherits:
-
Object
- Object
- ApplicationRecommendationClassCaller
- Defined in:
- lib/applicationrecommendation.rb
Overview
end
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #generate(result1, result2) ⇒ Object
-
#initialize(type) ⇒ ApplicationRecommendationClassCaller
constructor
A new instance of ApplicationRecommendationClassCaller.
Constructor Details
#initialize(type) ⇒ ApplicationRecommendationClassCaller
59 60 61 |
# File 'lib/applicationrecommendation.rb', line 59 def initialize type @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
57 58 59 |
# File 'lib/applicationrecommendation.rb', line 57 def type @type end |
Instance Method Details
#generate(result1, result2) ⇒ Object
63 64 65 |
# File 'lib/applicationrecommendation.rb', line 63 def generate(result1,result2) @type.recommends(result1,result2) end |