Module: Resync::Client::Mixins::ZippedResource

Includes:
Downloadable
Defined in:
lib/resync/client/mixins/zipped_resource.rb

Overview

A resource that refers to a zipped bitstream package.

Instance Attribute Summary

Attributes included from ClientDelegator

#client_delegate

Instance Method Summary collapse

Methods included from Downloadable

#download_to_file, #download_to_temp_file, #get, #get_and_parse

Methods included from ClientDelegator

#client, #client=

Instance Method Details

#zip_packageResync::Client::Zip::ZipPackage

Provides the contents of this resource as a Zip::ZipPackage, downloading it to a temporary file if necessary.

Returns:



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

def zip_package
  @zip_package ||= Resync::Client::Zip::ZipPackage.new(download_to_temp_file)
end