require 'delegate' require 'acfs/model/loadable' require 'acfs/collections/paginatable' module Acfs class Collection < ::Delegator include Model::Loadable include Acfs::Util::Callbacks include Collections::Paginatable def initialize(resource_class) super([]) @resource_class = resource_class end def __getobj__ @models end def __setobj__(obj) @models = obj end end end