Sha256: d0054adcf53746b02d2323dd035cf4f25be0fc20893cd0948a8f40373aaef7c9

Contents?: true

Size: 395 Bytes

Versions: 14

Compression:

Stored size: 395 Bytes

Contents

module FbGraph2
  class Edge
    module Permissions
      def permissions(params = {})
        permissions = self.edge :permissions, params
        permissions.collect! do |permission|
          Struct::Permission.new permission
        end
      end

      def revoke!(permission = nil, params = {})
        destroy params, edge: :permissions, edge_scope: permission
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-1.2.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-1.1.1 lib/fb_graph2/edge/permissions.rb
fb_graph2-1.1.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-1.0.1 lib/fb_graph2/edge/permissions.rb
fb_graph2-1.0.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.9.1 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.9.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.8.0 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.7.9 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.7.8 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.7.7 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.7.6 lib/fb_graph2/edge/permissions.rb
fb_graph2-0.7.5 lib/fb_graph2/edge/permissions.rb