Sha256: b358487dbedcc9b73a8061507eefe19cd946de0950cb0bcb347d41c0b241d1cd
Contents?: true
Size: 533 Bytes
Versions: 8
Compression:
Stored size: 533 Bytes
Contents
module Runcible module Extensions class PackageCategory < Runcible::Base TYPE = 'package_category' def self.all Runcible::Resources::Unit.search(TYPE, {}) end def self.find(id) find_all([id]).first end def self.find_all(ids) Runcible::Resources::Unit.search(TYPE, :filters => {'id'=> {'$in'=> ids}}) end def self.find_all_by_unit_ids(ids) Runcible::Resources::Unit.search(TYPE, :filters => {:_id=> {'$in'=> ids}}) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems