Sha256: 8b3d174a05d514a0f17bc331a0acd6ce5b9dc0571ff3b51b16f2bedd5769c03d

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

class IdsPlease
  class Hi5 < IdsPlease::BaseParser

    MASK = /hi5/i

    private

    def self.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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ids_please-1.1.0 lib/ids_please/hi5.rb