Sha256: da5f35b19deecc93de579d02141e18e68c1b0fe32a6bdc34dc327d945c17846f
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
class IdsPlease class Odnoklassniki < IdsPlease::BaseParser MASK = /odnoklassniki/i private def self.parse_link(link) if matched = link.path.match(/\/(\d{2,})/) matched[1] elsif link.path =~ /\/about\// link.path.split('/')[-2] elsif link.path.split('/').size >= 3 link.path.split('/')[2] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ids_please-1.1.0 | lib/ids_please/odnoklassniki.rb |