lib/fb_graph2/struct/permission.rb in fb_graph2-0.7.4 vs lib/fb_graph2/struct/permission.rb in fb_graph2-0.7.5
- old
+ new
@@ -2,8 +2,16 @@
class Struct
class Permission < Struct
register_attributes(
raw: [:permission, :status]
)
+
+ def as_identifier
+ permission
+ end
+
+ def revokable?
+ !['public_profile'].include? permission
+ end
end
end
end
\ No newline at end of file