Module: FbGraph::Connections::Games

Included in:
User
Defined in:
lib/fb_graph/connections/games.rb

Instance Method Summary collapse

Instance Method Details

#games(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/games.rb', line 4

def games(options = {})
  games = self.connection :games, options
  games.map! do |game|
    Page.new game[:id], game.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end