Sha256: 123e4c66674dd26e774eb83a4e5472677d1a04062000afb0c1d4e9ca5dfddf7c
Contents?: true
Size: 527 Bytes
Versions: 5
Compression:
Stored size: 527 Bytes
Contents
module Runcible module Extensions class Distribution < Runcible::Base TYPE = 'distribution' 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
5 entries across 5 versions & 1 rubygems