Sha256: 2ec92ec51d7f50b1fa2f212018e0e60c5c1ade1d1ada48af80efc98e0381391f
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module Recommendations class Item module Ratings def ratings(rating, tolerance = Recommendations.configuration.user_tolerance) Recommendations.redis.zrevrangebyscore("recommendations:ratings:item:#{id}", Float(rating) + tolerance, Float(rating) - tolerance) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recommendations2-0.0.5 | lib/recommendations/item/ratings.rb |
recommendations2-0.0.4 | lib/recommendations/item/ratings.rb |