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



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

def initialize type
    @type = type
end

Instance Attribute Details

#typeObject

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