Class: Tagger::Downloader

Inherits:
Object
  • Object
show all
Defined in:
lib/tagger/downloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spreadsheet_url) ⇒ Downloader

Returns a new instance of Downloader.



5
6
7
# File 'lib/tagger/downloader.rb', line 5

def initialize(spreadsheet_url)
  @spreadsheet_url = spreadsheet_url
end

Instance Attribute Details

#spreadsheet_urlObject

Returns the value of attribute spreadsheet_url.



3
4
5
# File 'lib/tagger/downloader.rb', line 3

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#downloadObject



9
10
11
# File 'lib/tagger/downloader.rb', line 9

def download
  open(@spreadsheet_url).read
end