Module: Entity::Object

Defined in:
lib/scout/entity/object.rb

Instance Method Summary collapse

Instance Method Details

#_ary_property_cacheObject



12
13
14
# File 'lib/scout/entity/object.rb', line 12

def _ary_property_cache
  @_ary_property_cache ||= {}
end

#all_propertiesObject



16
17
18
# File 'lib/scout/entity/object.rb', line 16

def all_properties
  entity_classes.inject([]){|acc,e| acc.concat(e.properties) }
end

#base_entityObject



8
9
10
# File 'lib/scout/entity/object.rb', line 8

def base_entity
  entity_classes.last
end

#entity_classesObject



4
5
6
# File 'lib/scout/entity/object.rb', line 4

def entity_classes
  annotation_types.select{|t| Entity === t}
end