Sha256: 42d3b1c579124be584f9022eb5b4855ab82e996b458d3fe3b52802d0370b7b34
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # # 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_API-0.8.4 | lib/recommend/Recommender.rb |