Sha256: 37d355374921ac0c11b475652e86c68e4421205ac45b7c5d3baff514a0c8b395
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' # # # This Recommender object is the value object which contains the properties of # Recommender. # # module App42 module Recommend class Recommender < App42Response attr_accessor :fileName, :recommendedItemList @fileName @recommendedItemList = Array.new() end class RecommendedItem attr_accessor :userId, :item, :value @userId @item @value # # This is a constructor that takes no parameter # def initialize(recommender) recommender.recommendedItemList.push(self) end # # Returns the Recommender Response in JSON format. # # @return the response in JSON format. # def to_s return "UserId : #{self.userId}" + "item : #{self.item}" + "value : #{self.value}"; end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_RUBY_SDK-0.8.3 | lib/recommend/Recommender.rb |