Sha256: 025b98e8c9abe71ed66f0f8e5f6ff8cab39d8c98ff6881fcd8dad1be4e7024e4
Contents?: true
Size: 354 Bytes
Versions: 37
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module Miteru class Feeds class Feed def urls raise NotImplementedError, "You must implement #{self.class}##{__method__}" end private def get(url) res = HTTPClient.get(url) raise HTTPResponseError if res.code != 200 res.body.to_s end end end end
Version data entries
37 entries across 37 versions & 1 rubygems