Class: TorrentSearch::Download

Inherits:
Object
  • Object
show all
Defined in:
lib/torrent_search/download.rb

Instance Method Summary collapse

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

#performObject



12
13
14
15
# File 'lib/torrent_search/download.rb', line 12

def perform
  save! filename
  say 'Complete', :green
end