module Resync::Client::Mixins::BitstreamResource

A resource that refers to a bitsream within a zipped bitstream package.

@!attribute [rw] zip_package_delegate

@return [ZipPackage] the provider of the containing package,
  e.g. its manifest

Attributes

zip_package_delegate[RW]

Public Instance Methods

bitstream() click to toggle source

@return [Bitstream] the bitstream for this resource

# File lib/resync/client/mixins/bitstream_resource.rb, line 20
def bitstream
  containing_package.bitstream_for(self)
end
containing_package() click to toggle source

@return [ZipPackage] the package containing the bitstream for this resource

# File lib/resync/client/mixins/bitstream_resource.rb, line 15
def containing_package
  @zip_package_delegate.zip_package
end