Class: Torrentz::Fetch

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/torrentz/fetch.rb

Defined Under Namespace

Classes: PirateBay, Simple, Vertor

Instance Method Summary collapse

Methods included from Logger

#logger

Constructor Details

#initialize(url) ⇒ Fetch

Returns a new instance of Fetch.



5
6
7
# File 'lib/torrentz/fetch.rb', line 5

def initialize(url)
  @url = url
end

Instance Method Details

#getObject



9
10
11
12
13
14
# File 'lib/torrentz/fetch.rb', line 9

def get
  {
    :magnet  => get_magnet,
    :torrent => get_torrent
  }
end