Sha256: 1f2cfb8fe06ecbe66c8985109f52015b1cd077b75db3b74d7845e1467da8a4d6

Contents?: true

Size: 650 Bytes

Versions: 8

Compression:

Stored size: 650 Bytes

Contents

require 'resync'
require_relative 'resource_client_delegate'

module Resync
  class Client
    module Mixins
      # A resource container whose resources are not, themselves, resource containers
      module PlainList
        # Delegates to {BaseResourceList#resources} for interoperation with {ListIndex#all_resources}.
        # @return [Enumerator::Lazy<Resync::Resource>] a lazy enumeration of the resources in this document
        def all_resources
          resources.lazy
        end
      end
    end
  end

  class ChangeList
    prepend Client::Mixins::PlainList
  end

  class ResourceList
    prepend Client::Mixins::PlainList
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
resync-client-0.4.3 lib/resync/client/mixins/plain_list.rb
resync-client-0.4.2 lib/resync/client/mixins/plain_list.rb
resync-client-0.4.1 lib/resync/client/mixins/plain_list.rb
resync-client-0.4.0 lib/resync/client/mixins/plain_list.rb
resync-client-0.3.5 lib/resync/client/mixins/plain_list.rb
resync-client-0.3.4 lib/resync/client/mixins/plain_list.rb
resync-client-0.3.3 lib/resync/client/mixins/plain_list.rb
resync-client-0.3.2 lib/resync/client/mixins/plain_list.rb