Sha256: 988ed93ca02302eb78e05a1c5a21a609192eaf468e81b68e6710690317327f8d
Contents?: true
Size: 364 Bytes
Versions: 5
Compression:
Stored size: 364 Bytes
Contents
class IdsPlease class Odnoklassniki < IdsPlease::BaseParser MASK = /odnoklassniki/i 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
5 entries across 5 versions & 1 rubygems