lib/dailycred.rb in dailycred-0.1.22 vs lib/dailycred.rb in dailycred-0.1.23

- old
+ new

@@ -12,36 +12,39 @@ :signup => "/user/api/signup.json", :login => "/user/api/signin.json" } # Initializes a dailycred object - # @param [String] client_id the client's daiycred client id - # @param [String] secret_key the clients secret key - # @param [Hash] opts a hash of options + # + # - @param [String] client\_id the client's daiycred client id + # - @param [String] secret\_key the clients secret key + # - @param [Hash] opts a hash of options def initialize(client_id, secret_key="", opts={}) @client_id = client_id @secret_key = secret_key @options = opts opts[:client_options] ||= {} @url = opts[:client_options][:site] || Dailycred::URL end # Generates a Dailycred event - # @param [String] user_id the user's dailycred user id - # @param [String] key the name of the event type - # @param [String] val the value of the event (optional) + # + # - @param [String] user_id the user's dailycred user id + # - @param [String] key the name of the event type + # - @param [String] val the value of the event (optional) def event(user_id, key, val="") opts = { :key => key, :valuestring => val, :user_id => user_id } post "/admin/api/customevent.json", opts end # Tag a user in dailycred - # @param [String] user_id the user's dailycred user id - # @param [String] tag the desired tag to add + # + # - @param [String] user_id the user's dailycred user id + # - @param [String] tag the desired tag to add def tag(user_id, tag) opts = { :user_id => user_id, :tag => tag }