Class: OmniScrapper::Normalizers::Phone
- Defined in:
- lib/omni_scrapper/normalizers/phone.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from OmniScrapper::Normalizers::Base
Instance Method Details
#normalized ⇒ Object
6 7 8 9 |
# File 'lib/omni_scrapper/normalizers/phone.rb', line 6 def normalized # TODO: raise exception if phone not presetn value.scan(/([0-9 \-\(\)]{10,})/).flatten.last.gsub(/[ \-\(\)]/, '') end |