Sha256: c565bdcd4e7d62346602ae00b6fbbe1df8117412553585c1cd605786034c89c0

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

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

      MASK = /livejournal/i

      class << self
        private

        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

7 entries across 7 versions & 1 rubygems

Version Path
ids_please-2.2.0 lib/ids_please/parsers/livejournal.rb
ids_please-2.1.2 lib/ids_please/parsers/livejournal.rb
ids_please-2.1.1 lib/ids_please/parsers/livejournal.rb
ids_please-2.1.0 lib/ids_please/parsers/livejournal.rb
ids_please-2.0.0.beta2 lib/ids_please/parsers/livejournal.rb
ids_please-2.0.0.beta1 lib/ids_please/parsers/livejournal.rb
ids_please-2.0.0.beta lib/ids_please/parsers/livejournal.rb