Sha256: 3904698f6b5c660c201bd7e3b9d4b4c013e379e543ca6c619fb86b593f1c0dd1
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
module FbGraph module Connections module Members def members(options = {}) members = self.connection :members, options members.map! do |member| User.new member[:id], member.merge( :access_token => options[:access_token] || self.access_token ) end end def member!(user, options = {}) post options.merge(:connection => :members, :member => user.identifier) end def unmember!(user, options = {}) delete options.merge(:connection => :members, :member => user.identifier) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-2.7.17 | lib/fb_graph/connections/members.rb |
fb_graph-2.7.16 | lib/fb_graph/connections/members.rb |