Sha256: 598ce3833b76ae87cf6da069c4a43d36a2152864e5494106d6ee4146ad0b3ee4

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

module Zunnit
  extend Utils
  mattr_accessor :client, :key, :version, :actions

  # Fixed constants
  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",
    :recommendation_products_for_item  => "/recommendation/products/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",
    :action_feedback_click             => "/action/feedback/click"
  }

  def self.setup
    self.actions = ACTIONS
    yield self if block_given?
    self
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zunnit-0.4.3 lib/zunnit/setup.rb
zunnit-0.4.2 lib/zunnit/setup.rb