Class: Oddb2xml::RoggerDownloader

Inherits:
Downloader show all
Includes:
DownloadMethod
Defined in:
lib/oddb2xml/downloader.rb

Overview

"Rogger Mediliste": GTIN -> preferred German article name (Vitabyte/Zur Rose name-conflict corrections). Fetched directly as the CSV export of the shared Google Sheet (the source of truth Frau Rogger maintains), so edits there reach the feeds without any release step. The sheet must be shared as "anyone with the link can view". See Oddb2xml::RoggerNames.

Constant Summary collapse

ROGGER_SHEET_ID =
"1NXJZ8KYzVsX0OQU767tl_AwCyvFVieHWnTWXqhflwdc"

Instance Attribute Summary

Attributes inherited from Downloader

#agent, #file2save, #type, #url

Instance Method Summary collapse

Methods inherited from Downloader

#init, #initialize, #report_download

Constructor Details

This class inherits a constructor from Oddb2xml::Downloader

Instance Method Details

#downloadObject



214
215
216
217
# File 'lib/oddb2xml/downloader.rb', line 214

def download
  @url ||= "https://docs.google.com/spreadsheets/d/#{ROGGER_SHEET_ID}/export?format=csv&gid=0"
  download_as("rogger_liste.csv", "w+")
end