ninoseki/miteru

View on GitHub
lib/miteru/feeds/phishing_database.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Miteru
  class Feeds
    class PhishingDatabase < Base
      def initialize(base_url = "https://raw.githubusercontent.com")
        super(base_url)
      end

      def urls
        text.lines.map(&:chomp)
      end

      private

      def text
        get("/mitchellkrogza/Phishing.Database/master/phishing-links-ACTIVE-NOW.txt").body.to_s
      end
    end
  end
end