Sha256: f93dfc4e481225fc1a2d251cf8f43d818dec08d0ee35c429f8d02382f997e10f

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

module FbGraph
  module Connections
    module Attending
      def attending(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'attending')))
        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

4 entries across 4 versions & 1 rubygems

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