Class: Tagger::Downloader
- Inherits:
-
Object
- Object
- Tagger::Downloader
- Defined in:
- lib/tagger/downloader.rb
Instance Attribute Summary collapse
-
#spreadsheet_url ⇒ Object
Returns the value of attribute spreadsheet_url.
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize(spreadsheet_url) ⇒ Downloader
constructor
A new instance of Downloader.
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_url ⇒ Object
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
#download ⇒ Object
9 10 11 |
# File 'lib/tagger/downloader.rb', line 9 def download open(@spreadsheet_url).read end |