Sha256: 3a510e6dca223223c99519686f26098616f9e4b01754fb56ddeb4b4e3955cffc

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

module FbGraph
  module Connections
    module Attending
      def attending(options = {})
        members = FbGraph::Collection.new(get(options.merge(:connection => 'attending')))
        members.map! do |member|
          if member[:category]
            Page.new(member.delete(:id), member)
          else
            User.new(member.delete(:id), member)
          end
        end
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fb_graph-0.0.8 lib/fb_graph/connections/attending.rb
fb_graph-0.0.7 lib/fb_graph/connections/attending.rb