Sha256: 2d440545c1095900cf950091564ed2afd76332a609707137c8d8d39865686b12

Contents?: true

Size: 476 Bytes

Versions: 7

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require 'delegate'

require 'acfs/resource/loadable'
require 'acfs/collections/paginatable'

module Acfs
  class Collection < ::Delegator
    include Resource::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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acfs-2.0.0 lib/acfs/collection.rb
acfs-1.7.0 lib/acfs/collection.rb
acfs-1.6.0 lib/acfs/collection.rb
acfs-1.5.1 lib/acfs/collection.rb
acfs-1.5.0 lib/acfs/collection.rb
acfs-1.4.0 lib/acfs/collection.rb
acfs-1.3.4 lib/acfs/collection.rb