Sha256: a6f005f1d6df4c2643c1f445b38ce4188ab954baa5c5df1cc689cb6040fda2af

Contents?: true

Size: 283 Bytes

Versions: 14

Compression:

Stored size: 283 Bytes

Contents

module FbGraph2
  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

Version data entries

14 entries across 14 versions & 1 rubygems

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