Sha256: db9921d44836032667a802b5b767d24a4144b721c24ebce15fb1c153fb6f1371

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

class IdsPlease
  module Parsers
    class Hi5 < IdsPlease::Parsers::Base

      MASK = /hi5/i

      class << self
        private

        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
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ids_please-2.2.0 lib/ids_please/parsers/hi5.rb
ids_please-2.1.2 lib/ids_please/parsers/hi5.rb
ids_please-2.1.1 lib/ids_please/parsers/hi5.rb
ids_please-2.1.0 lib/ids_please/parsers/hi5.rb
ids_please-2.0.0.beta2 lib/ids_please/parsers/hi5.rb
ids_please-2.0.0.beta1 lib/ids_please/parsers/hi5.rb
ids_please-2.0.0.beta lib/ids_please/parsers/hi5.rb