Class: HTTParty::Parser
- Inherits:
-
Object
- Object
- HTTParty::Parser
- Defined in:
- lib/itis.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#noko ⇒ Object
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 |