Sha256: 9076ee83285db20308a6a4a599d84c74025dcd5b7b1bae1770ae3f8891dd321c
Contents?: true
Size: 425 Bytes
Versions: 4
Compression:
Stored size: 425 Bytes
Contents
class IdsPlease class Odnoklassniki < IdsPlease::BaseParser MASK = /odnoklassniki|ok\.ru/i class << self private def 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 end
Version data entries
4 entries across 4 versions & 1 rubygems