Class: IdsPlease::Parsers::Mailru

Inherits:
Base
  • Object
show all
Defined in:
lib/ids_please/parsers/mailru.rb

Constant Summary collapse

MASK =
/mail\.ru/i

Class Method Summary collapse

Methods inherited from Base

interact, to_sym, valid_id_regex

Class Method Details



8
9
10
11
# File 'lib/ids_please/parsers/mailru.rb', line 8

def parse_link(link)
  id = link.path.split('/')[2]
  id.split('?').first.split('#').first
end