Class: Torrentz::Fetch

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

Defined Under Namespace

Classes: PirateBay, Simple, Vertor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger

#logger, #logger=

Constructor Details

#initialize(url) ⇒ Fetch

Returns a new instance of Fetch.



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

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/torrentz/fetch.rb', line 7

def url
  @url
end

Instance Method Details

#getObject



13
14
15
16
17
18
# File 'lib/torrentz/fetch.rb', line 13

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