Module: Twitter::Client::Notification
- Included in:
- Twitter::Client
- Defined in:
- lib/twitter/client/notification.rb
Overview
Defines methods related to notification
Instance Method Summary collapse
-
#disable_notifications(user, options = {}) ⇒ Twitter::User
Disables notifications for updates from the specified user to the authenticating user.
-
#enable_notifications(user, options = {}) ⇒ Twitter::User
Enables device notifications for updates from the specified user to the authenticating user.
Instance Method Details
#disable_notifications(user, options = {}) ⇒ Twitter::User
Disables notifications for updates from the specified user to the authenticating user
41 42 43 44 45 |
# File 'lib/twitter/client/notification.rb', line 41 def disable_notifications(user, ={}) .merge_user!(user) user = post("/1/notifications/leave.json", ) Twitter::User.new(user) end |
#enable_notifications(user, options = {}) ⇒ Twitter::User
Enables device notifications for updates from the specified user to the authenticating user
22 23 24 25 26 |
# File 'lib/twitter/client/notification.rb', line 22 def enable_notifications(user, ={}) .merge_user!(user) user = post("/1/notifications/follow.json", ) Twitter::User.new(user) end |