lib/ids_please/linkedin.rb in ids_please-1.1.0 vs lib/ids_please/linkedin.rb in ids_please-1.1.1

- old
+ new

@@ -1,20 +1,21 @@ class IdsPlease class Linkedin < IdsPlease::BaseParser MASK = /linkedin/i - private + class << self + private - def self.parse_link(link) - query = CGI.parse(link.query) if link.query && !link.query.empty? + 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 =~ /\/pub\// - link.path.split('/')[2] + if query && !query['id'].empty? + query['id'].first + elsif link.path =~ /\/pub\// + link.path.split('/')[2] + end end end - end end