Module: FollowingExtender
- Included in:
- FollowingOrigin
- Defined in:
- lib/extenders/following_extender.rb
Instance Method Summary collapse
- #decr_user_followers_count(uid) ⇒ Object
- #decr_user_followings_count(uid) ⇒ Object
- #next_id ⇒ Object
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_id ⇒ Object
2 3 4 |
# File 'lib/extenders/following_extender.rb', line 2 def next_id ID_SERVICE.getNextId("ting.tb_following") end |