Module: FbGraph2::Edge::Achievements

Included in:
App, User
Defined in:
lib/fb_graph2/edge/achievements.rb

Instance Method Summary collapse

Instance Method Details

#achievements(params = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph2/edge/achievements.rb', line 4

def achievements(params = {})
  achievements = self.edge :achievements, params
  achievements.collect! do |achievement|
    Achievement.new(achievement[:id], achievement).authenticate self.access_token
  end
end