Sha256: 23968cb200d4f4c97f17f860fe759ea557f7c19fa2c7fd5a7efe9e21981ebfea

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 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.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.4.2 lib/fb_graph/connections/declined.rb
fb_graph-0.4.1 lib/fb_graph/connections/declined.rb
fb_graph-0.4.0 lib/fb_graph/connections/declined.rb
fb_graph-0.3.0 lib/fb_graph/connections/declined.rb