Module: Resync::Client::Mixins::BitstreamResourceList

Included in:
Resync::ChangeDumpManifest, ResourceDumpManifest
Defined in:
lib/resync/client/mixins/bitstream_resource_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#zip_package ⇒ Object

Returns the value of attribute zip_package.



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

def zip_package
  @zip_package
end

Instance Method Details

#resources=(value) ⇒ Object

Makes each provided resource a Resync::Client::Mixins::BitstreamResource

Parameters:

  • value (Array<Resource>) —

    the resources for this list



17
18
19
20
21
22
23
24
25
# File 'lib/resync/client/mixins/bitstream_resource_list.rb', line 17

def resources=(value)
  super
  resources.each do |r|
    class << r
      prepend BitstreamResource
    end
    r.zip_package_delegate = self
  end
end