class FbGraph2::TaggedProfile
Public Class Methods
new(id, attributes = {})
click to toggle source
Calls superclass method
FbGraph2::Node::new
# File lib/fb_graph2/tagged_profile.rb, line 8 def initialize(id, attributes = {}) super self.object = klass.new self.id end
Public Instance Methods
klass()
click to toggle source
# File lib/fb_graph2/tagged_profile.rb, line 13 def klass klass = case self.type when 'user' User when 'page' Page when 'group' Group when 'event' Event when 'application' App else Node end end