Sha256: 871e9e29f530c21be648436d740ce46bcc609f9d1f95b8a83942601bae6cd2d1
Contents?: true
Size: 686 Bytes
Versions: 42
Compression:
Stored size: 686 Bytes
Contents
module FbGraph module Connections module Attending def attending(options = {}) members = self.connection :attending, options members.map! do |member| User.new member[:id], member.merge( :access_token => options[:access_token] || self.access_token ) end end def attending?(user, options = {}) member = self.connection( :attending, options.merge(:connection_scope => user.identifier) ).first member.present? end def attend!(options = {}) post options.merge(:connection => :attending) end alias_method :attending!, :attend! end end end
Version data entries
42 entries across 42 versions & 1 rubygems