Class: DetailsPage

Inherits:
Object
  • Object
show all
Defined in:
lib/subdl/subtitles_net.rb

Instance Method Summary collapse

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_locationObject



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