class Miteru::Feeds::PhishStats

Constants

URL

Public Instance Methods

urls() click to toggle source
# File lib/miteru/feeds/phishstats.rb, line 11
def urls
  json = JSON.parse(get(URL))
  json.map do |entry|
    entry["url"]
  end
rescue HTTPResponseError, HTTP::Error, JSON::ParserError => e
  puts "Failed to load PhishStats feed (#{e})"
  []
end

Private Instance Methods

url_for(path) click to toggle source
# File lib/miteru/feeds/phishstats.rb, line 23
def url_for(path)
  URI(URL + path)
end