Sha256: b119ebc24243c2d401e78e5a39fdca845651cee05f6cc47b41ea4f0a2aa39e24
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
class IdsPlease module Parsers class Odnoklassniki < IdsPlease::Parsers::Base MASK = /odnoklassniki|ok\.ru/i class << self 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 end
Version data entries
6 entries across 6 versions & 1 rubygems