Sha256: 30a902924e7031d660e0c75713f3c0ce37a02ce26e5351ad8b8f6fb4b52f9a26

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

module FbGraph
  module Connections
    module Declined
      def declined(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'declined')))
        members.map! do |member|
          if member[:category]
            Page.new(member.delete(:id), member)
          else
            User.new(member.delete(:id), member)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.0.6 lib/fb_graph/connections/declined.rb
fb_graph-0.0.5 lib/fb_graph/connections/declined.rb
fb_graph-0.0.4 lib/fb_graph/connections/declined.rb
fb_graph-0.0.3 lib/fb_graph/connections/declined.rb