Class: TorrentSearch::Download
- Inherits:
-
Object
- Object
- TorrentSearch::Download
- Defined in:
- lib/torrent_search/download.rb
Instance Method Summary collapse
-
#initialize(view, torrent) ⇒ Download
constructor
A new instance of Download.
- #perform ⇒ Object
Constructor Details
#initialize(view, torrent) ⇒ Download
Returns a new instance of Download.
7 8 9 10 |
# File 'lib/torrent_search/download.rb', line 7 def initialize(view, torrent) @view = view @torrent = torrent end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 |
# File 'lib/torrent_search/download.rb', line 12 def perform save! filename say 'Complete', :green end |