Sha256: 7a0c9b9563687ed87883c0702cd380c0ec07f8027a8dc14df12d55a5cdb4bf38

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

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

      def declined!(options = {})
        post(options.merge(:connection => 'declined'))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/declined.rb
fb_graph-0.2.1 lib/fb_graph/connections/declined.rb
fb_graph-0.2.0 lib/fb_graph/connections/declined.rb
fb_graph-0.1.3 lib/fb_graph/connections/declined.rb
fb_graph-0.1.2 lib/fb_graph/connections/declined.rb
fb_graph-0.1.1 lib/fb_graph/connections/declined.rb
fb_graph-0.1.0 lib/fb_graph/connections/declined.rb