class IdsPlease
  module Parsers
    class Moikrug < IdsPlease::Parsers::Base

      MASK = /moikrug/i

      class << self
        def interact(links)
          links.map do |link|
            next if link.host.sub('.moikrug.ru', '') == link.host
            parse_link(link)
          end.compact
        end

        def parse_link(link)
          link.host.sub('.moikrug.ru', '')
        end
      end

    end
  end
end
