Sha256: a4fde02adbf5446ffcf8e4a6e8d072b897459faa8e5794a1a77f2f9d85e58cdf

Contents?: true

Size: 434 Bytes

Versions: 29

Compression:

Stored size: 434 Bytes

Contents

module FbGraph2
  class Edge
    module Notifications
      def notifications(params = {})
        notifications = self.edge :notifications, params
        notifications.collect! do |notification|
          Notification.new notification[:id], notification
        end
      end

      def notification!(params = {})
        self.post params, edge: :notifications
      end
      alias_method :notify!, :notification!
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fb_graph2-0.8.0 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.9 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.8 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.7 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.6 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.5 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.4 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.3 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.2 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.1 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.7.0 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.6.2 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.6.1 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.6.0 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.5.3 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.5.2 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.5.1 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.5.0 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.4.4 lib/fb_graph2/edge/notifications.rb
fb_graph2-0.4.3 lib/fb_graph2/edge/notifications.rb