Sha256: cee1f000fc58795521576d3cdc16394cff880f0498224fa000553b78d6d52050
Contents?: true
Size: 448 Bytes
Versions: 14
Compression:
Stored size: 448 Bytes
Contents
module FbGraph2 class TaggedProfile < Node register_attributes( raw: [:id, :name, :type, :offset, :length], custom: [:object] ) def initialize(id, attributes = {}) super self.object = klass.new self.id end def klass klass = case self.type when 'user' User when 'page' Page when 'group' Group when 'event' Event end end end end
Version data entries
14 entries across 14 versions & 1 rubygems