Sha256: aa14cadd1ede727c9d70ec729588544a77e041ea9b1c67edf8b16662105b8456

Contents?: true

Size: 282 Bytes

Versions: 18

Compression:

Stored size: 282 Bytes

Contents

module FbGraph
  module Connections
    module Permissions
      def permissions(options = {})
        self.connection(:permissions, options).first.inject([]) do |arr, (key, value)|
          arr << key.to_sym if value.to_i == 1
          arr
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fb_graph-1.9.4 lib/fb_graph/connections/permissions.rb
fb_graph-1.9.3 lib/fb_graph/connections/permissions.rb
fb_graph-1.9.2 lib/fb_graph/connections/permissions.rb
fb_graph-1.9.1 lib/fb_graph/connections/permissions.rb
fb_graph-1.9.0 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.6 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.5 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.4 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.3 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.2 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.1 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.0 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/connections/permissions.rb
fb_graph-1.7.5 lib/fb_graph/connections/permissions.rb
fb_graph-1.8.0.alpha lib/fb_graph/connections/permissions.rb
fb_graph-1.7.4 lib/fb_graph/connections/permissions.rb
fb_graph-1.7.3 lib/fb_graph/connections/permissions.rb
fb_graph-1.7.2 lib/fb_graph/connections/permissions.rb