Sha256: 969777f31bba0cf9543b6d784a9c28afb61060e4496f2e703ef42113ec265f8b
Contents?: true
Size: 481 Bytes
Versions: 7
Compression:
Stored size: 481 Bytes
Contents
class IdsPlease module Parsers class Odnoklassniki < IdsPlease::Parsers::Base 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 end
Version data entries
7 entries across 7 versions & 1 rubygems