Class: HTTParty::Parser

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

Direct Known Subclasses

SearchSuggestionParser

Instance Method Summary collapse

Instance Method Details

#nokoObject



29
30
31
32
33
34
35
# File 'lib/itis.rb', line 29

def noko
	doc = Nokogiri::HTML(body)
	doc.remove_namespaces!
	results = doc.css("p.nums span.phone").to_a
	return results.map!{|phone| phone.content } unless results.empty?
	[]
end