Sha256: 64804b4da4715174ffd10942a6efd42c14638c4efde332f1b743a57c41a34f2f
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
class IdsPlease module Parsers class Linkedin < IdsPlease::Parsers::Base MASK = /linkedin/i class << self private def parse_link(link) query = CGI.parse(link.query) if link.query && !link.query.empty? if query && !query['id'].empty? query['id'].first elsif link.path =~ /\/in\// link.path.split('/')[2] elsif link.path =~ /\/company\// link.path.split('/')[2] end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems