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

- old
+ new

@@ -1,18 +1,20 @@ class IdsPlease class Hi5 < IdsPlease::BaseParser MASK = /hi5/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['uid'].empty? - query['uid'].first - else - link.path.split('/')[1] + if query && !query['uid'].empty? + query['uid'].first + else + link.path.split('/')[1] + end end end end end