Module: FollowingExtender

Included in:
FollowingOrigin
Defined in:
lib/extenders/following_extender.rb

Instance Method Summary collapse

Instance Method Details

#decr_user_followers_count(uid) ⇒ Object



10
11
12
# File 'lib/extenders/following_extender.rb', line 10

def decr_user_followers_count(uid)
  COUNTER_SERVICE.decrBy('user.followers.count', uid, 1) 
end

#decr_user_followings_count(uid) ⇒ Object



6
7
8
# File 'lib/extenders/following_extender.rb', line 6

def decr_user_followings_count(uid)
  COUNTER_SERVICE.decrBy('user.followings.count', uid, 1) 
end

#next_idObject



2
3
4
# File 'lib/extenders/following_extender.rb', line 2

def next_id
  ID_SERVICE.getNextId("ting.tb_following")
end