Sha256: e89b4377c44fb2d03554e75197eee4848dc05713b64c32fce852217934211985

Contents?: true

Size: 396 Bytes

Versions: 6

Compression:

Stored size: 396 Bytes

Contents

class IdsPlease
  module Parsers
    class Livejournal < IdsPlease::Parsers::Base

      MASK = /livejournal/i

      class << self
        def parse_link(link)
          parsed = link.host.sub('.livejournal.com', '')
          parsed = link.host.split('.livejournal').first if parsed == link.host
          return if parsed == link.host
          parsed
        end
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ids_please-2.3.0 lib/ids_please/parsers/livejournal.rb
ids_please-2.2.5 lib/ids_please/parsers/livejournal.rb
ids_please-2.2.4 lib/ids_please/parsers/livejournal.rb
ids_please-2.2.3 lib/ids_please/parsers/livejournal.rb
ids_please-2.2.2 lib/ids_please/parsers/livejournal.rb
ids_please-2.2.1 lib/ids_please/parsers/livejournal.rb