module Tagger class Downloader attr_accessor :spreadsheet_url def initialize(spreadsheet_url) @spreadsheet_url = spreadsheet_url end def download_and_write content = download() write_to_file(content) end private def download open(@spreadsheet_url).read end def write_to_file(content) File.write("tmp/raw.csv", content) end end end