Module: Entity::Object
- Defined in:
- lib/scout/entity/object.rb
Instance Method Summary collapse
- #_ary_property_cache ⇒ Object
- #all_properties ⇒ Object
- #base_entity ⇒ Object
- #entity_classes ⇒ Object
Instance Method Details
#_ary_property_cache ⇒ Object
12 13 14 |
# File 'lib/scout/entity/object.rb', line 12 def _ary_property_cache @_ary_property_cache ||= {} end |
#all_properties ⇒ Object
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_entity ⇒ Object
8 9 10 |
# File 'lib/scout/entity/object.rb', line 8 def base_entity entity_classes.last end |