Sha256: 8a4f72858f6f321b02213e3c00f021948c644be2f526313acbbb929f156e2b92

Contents?: true

Size: 459 Bytes

Versions: 26

Compression:

Stored size: 459 Bytes

Contents

module FbGraph
  module Connections
    module Attending
      def attending(options = {})
        members = self.connection(:attending, options)
        members.map! do |member|
          User.new(member.delete(:id), member.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end

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

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
fb_graph-0.7.3 lib/fb_graph/connections/attending.rb
fb_graph-0.7.2 lib/fb_graph/connections/attending.rb
fb_graph-0.7.1 lib/fb_graph/connections/attending.rb
fb_graph-0.7.0 lib/fb_graph/connections/attending.rb
fb_graph-0.6.0 lib/fb_graph/connections/attending.rb
fb_graph-0.5.0 lib/fb_graph/connections/attending.rb