Class: DetailsPage
- Inherits:
-
Object
- Object
- DetailsPage
- Defined in:
- lib/subdl/subtitles_net.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ DetailsPage
constructor
A new instance of DetailsPage.
- #zip_location ⇒ Object
Constructor Details
#initialize(html) ⇒ DetailsPage
Returns a new instance of DetailsPage.
60 61 62 |
# File 'lib/subdl/subtitles_net.rb', line 60 def initialize html @doc = Nokogiri::HTML(html) end |
Instance Method Details
#zip_location ⇒ Object
63 64 65 66 |
# File 'lib/subdl/subtitles_net.rb', line 63 def zip_location box = @doc.css('div.box') box.css('a @href').first.value end |