lib/ezid/batch_download.rb in ezid-client-1.6.0 vs lib/ezid/batch_download.rb in ezid-client-1.7.0
- old
+ new
@@ -82,10 +82,12 @@
def download_url
get_response.download_url
end
+ alias_method :url, :download_url
+
def download_file(path: nil)
path ||= Dir.getwd
fullpath = File.directory?(path) ? File.join(path, download_filename) : path
tries = 0
ready = false
@@ -120,9 +122,11 @@
end
end
fullpath
end
+
+ alias_method :file, :download_file
private
def download_uri
@download_uri ||= URI(download_url)