Class: Torrentz::Fetch
Defined Under Namespace
Classes: PirateBay, Simple, Vertor
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(url) ⇒ Fetch
constructor
A new instance of Fetch.
Methods included from 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
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/torrentz/fetch.rb', line 7 def url @url end |
Instance Method Details
#get ⇒ Object
13 14 15 16 17 18 |
# File 'lib/torrentz/fetch.rb', line 13 def get { :magnet => get_magnet, :torrent => get_torrent } end |