Module: FbGraph2::Edge::Permissions

Included in:
App, User
Defined in:
lib/fb_graph2/edge/permissions.rb

Instance Method Summary collapse

Instance Method Details

#permissions(params = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph2/edge/permissions.rb', line 4

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

#revoke!(permission = nil, params = {}) ⇒ Object



11
12
13
# File 'lib/fb_graph2/edge/permissions.rb', line 11

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