Class: Torrentz::Fetch::Simple

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

Direct Known Subclasses

PirateBay, Vertor

Instance Method Summary collapse

Methods included from Logger

#logger

Constructor Details

#initialize(url) ⇒ Simple

Returns a new instance of Simple.



55
56
57
# File 'lib/torrentz/fetch.rb', line 55

def initialize(url)
  @url = url
end

Instance Method Details

#docObject



59
60
61
# File 'lib/torrentz/fetch.rb', line 59

def doc
  @doc ||= Nokogiri::HTML(open(@url))
end