Module: Resync::Client::Mixins::ResourceClientDelegate

Includes:
ClientDelegator
Included in:
BaseResourceList, ChangeIndex, DumpIndex, ListIndex
Defined in:
lib/resync/client/mixins/resource_client_delegate.rb

Overview

A resource container that is capable of providing those resources with a Resync::Client

Instance Attribute Summary

Attributes included from ClientDelegator

#client_delegate

Instance Method Summary collapse

Methods included from ClientDelegator

#client, #client=

Instance Method Details

#resources=(value) ⇒ Object

Sets this object as the client provider delegate for each resource.

Parameters:

  • value (Array<Resource>)

    the resources for this list



13
14
15
16
# File 'lib/resync/client/mixins/resource_client_delegate.rb', line 13

def resources=(value)
  super
  resources.each { |r| r.client_delegate = self }
end