Module: FbGraph2::Edge::Notifications
- Included in:
- User
- Defined in:
- lib/fb_graph2/edge/notifications.rb
Instance Method Summary collapse
- #notification!(params = {}) ⇒ Object (also: #notify!)
- #notifications(params = {}) ⇒ Object
Instance Method Details
#notification!(params = {}) ⇒ Object Also known as: notify!
11 12 13 |
# File 'lib/fb_graph2/edge/notifications.rb', line 11 def notification!(params = {}) self.post params, edge: :notifications end |
#notifications(params = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph2/edge/notifications.rb', line 4 def notifications(params = {}) notifications = self.edge :notifications, params notifications.collect! do |notification| Notification.new notification[:id], notification end end |