Module: FbGraph2::Edge::Permissions
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 (params = {}) = self.edge :permissions, params .collect! do || Struct::Permission.new end end |
#revoke!(permission = nil, params = {}) ⇒ Object
11 12 13 |
# File 'lib/fb_graph2/edge/permissions.rb', line 11 def revoke!( = nil, params = {}) destroy params, edge: :permissions, edge_scope: end |