Class: IdsPlease::Odnoklassniki
- Inherits:
-
BaseParser
- Object
- BaseParser
- IdsPlease::Odnoklassniki
- Defined in:
- lib/ids_please/odnoklassniki.rb
Constant Summary collapse
- MASK =
/odnoklassniki/i
Class Method Summary collapse
Methods inherited from BaseParser
Class Method Details
.parse_link(link) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ids_please/odnoklassniki.rb', line 5 def self.parse_link(link) if link.path =~ /\/profile\// link.path.split('/').last elsif link.path.split('/').size == 2 link.path.split('/').last end end |