module MiGA::RemoteDataset::Download
def database_hash
def database_hash universe_hash.dig(:dbs, db) end
def download(file)
#
def download(file) self.class.download(*download_params(file)) end
def download_headers
def download_headers universe_hash[:headers][download_opts] end
def download_opts(file = nil)
def download_opts(file = nil) self.class.download_opts(*download_params(file)) end
def download_params(file = nil)
def download_params(file = nil) [universe, db, ids, database_hash[:format], file, {}, self] end
def download_payload
def download_payload universe_hash[:payload][download_opts] end
def download_uri
def download_uri universe_hash[:uri][download_opts] end
def universe_hash
def universe_hash self.class.UNIVERSE[universe] end