Class: BlueConductor::HTTP::Record::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_conductor/http/record/response.rb

Class Method Summary collapse

Class Method Details

.parse(html) ⇒ Object



6
7
8
9
# File 'lib/blue_conductor/http/record/response.rb', line 6

def self.parse(html)
  doc = Nokogiri::HTML(html)
  doc.css('.rightcol .tracklist td a').map(&:text)
end

.parse_image(html) ⇒ Object



11
12
13
14
# File 'lib/blue_conductor/http/record/response.rb', line 11

def self.parse_image(html)
  doc = Nokogiri::HTML(html)
  doc.css('.leftcol img')[0]['src']
end