Class: FbGraph2::Achievement

Inherits:
Node
  • Object
show all
Includes:
Edge::Comments, Edge::Likes::LikeeContext
Defined in:
lib/fb_graph2/achievement.rb

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id

Instance Method Summary collapse

Methods included from Edge::Likes::LikeeContext

#assign, #like!, #likes, #unlike!

Methods included from Edge::Comments

#assign, #comment!, #comments

Methods inherited from Node

#authenticate, #destroy, #edge, #edges, #fetch, #update

Methods included from AttributeAssigner

#assign

Constructor Details

#initialize(id, attributes = {}) ⇒ Achievement

Returns a new instance of Achievement.



14
15
16
17
18
19
# File 'lib/fb_graph2/achievement.rb', line 14

def initialize(id, attributes = {})
  super
  if attributes.include? :data
    self.data = attributes[:data]
  end
end