Sha256: e5a26736f89abefe9f5353cffcbb5cbdf56ed507b0e66e4b39e8211900d74318
Contents?: true
Size: 913 Bytes
Versions: 1
Compression:
Stored size: 913 Bytes
Contents
module Zunnit extend Utils mattr_accessor :client, :key, :version, :actions # Fixed constants URL = "http://api.zunnit.com/" ACTIONS = { :related_items => "/related/items", :recommendation_items_for_user => "/recommendation/items/for_user", :recommendation_groups_for_user => "/recommendation/groups/for_user", :recommendation_users_for_user => "/recommendation/users/for_user", :recommendation_users_for_item => "/recommendation/users/for_item", :recommendation_tags_for_item => "/recommendation/tags/for_item", :recommendation_cluster_for_item => "/recommendation/cluster/for_item", :action_items_add => "/action/items/add", :action_items_rate => "/action/items/rate", :action_items_view => "/action/items/view", :action_user_follow => "/action/user/follow" } def self.setup self.actions = ACTIONS yield self self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zunnit-0.1.0 | lib/zunnit/setup.rb |