Sha256: ce29f5808a353c0ac9da6080545dcc30105f394b7feb2b40247ae707d68045b3
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
module CDQ class CDQCollectionProxy < CDQTargetedQuery def initialize(objects, entity_description) @objects = objects super(entity_description, constantize(entity_description.managedObjectClassName)) @predicate = self.where("%@ CONTAINS SELF", @objects).predicate end def count @objects.size end def get @objects end def array @objects end def first @objects.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cdq-0.1.1 | motion/cdq/collection_proxy.rb |