Class: IdsPlease::Odnoklassniki

Inherits:
BaseParser show all
Defined in:
lib/ids_please/odnoklassniki.rb

Constant Summary collapse

MASK =
/odnoklassniki/i

Class Method Summary collapse

Methods inherited from BaseParser

network_name, parse

Class Method Details



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