lib/totter/client/users.rb in totter-0.2.8 vs lib/totter/client/users.rb in totter-0.2.9

- old
+ new

@@ -69,8 +69,33 @@ # @example # client.unfollow('kyle') def unfollow(user) boolean_from_response :post, "users/#{user}/unfollow" end + + # @return Array of [Hashie::Mash] + # @param user_id [String] ID of the user + # @example + # client.followers('5') + def followers(user_id) + get "users/#{user_id}/followers" + end + + # @return Array of [Hashie::Mash] + # @param user_id [String] ID of the user + # @example + # client.following('5') + def following(user_id) + get "users/#{user_id}/following" + end + + # @return Array of [Hashie::Mash] + # @param user_id [String] ID of the user + # @example + # client.user_votes('5') + def votes(user_id) + get "users/#{user_id}/votes" + end + end end end