Class: IdsPlease::Parsers::Hi5
- Defined in:
- lib/ids_please/parsers/hi5.rb
Constant Summary collapse
- MASK =
/hi5/i
Class Method Summary collapse
Methods inherited from Base
interact, to_sym, valid_id_regex
Class Method Details
.parse_link(link) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/ids_please/parsers/hi5.rb', line 8 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] end end |