Sha256: 3cc2c81dccf1d4c2addff8914c5d698009bafbc4a1d20658d3dc36ce92d0d19c
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
class IdsPlease::GooglePlus < IdsPlease::BaseParser MASK = /google/i def self.parse(links) links.map { |l| parse_link(l) }.compact end def self.parse_link(link) if link.host == 'google.com' link.path.split('/')[1] else matched = link.path.match(/\/(\d{2,})/) matched[1] if matched end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ids_please-0.0.3 | lib/ids_please/google_plus.rb |
ids_please-0.0.2 | lib/ids_please/google_plus.rb |