Sha256: 33a9a085d31612f7930f58fee4c74ca7d23e1111b1cdc2aee00e3f7edab7ee4b
Contents?: true
Size: 505 Bytes
Versions: 25
Compression:
Stored size: 505 Bytes
Contents
module FbGraph2 class TaggedProfile < Node register_attributes( raw: [: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 when 'application' App else Node end end end end
Version data entries
25 entries across 25 versions & 1 rubygems