stringer-rss/stringer

View on GitHub
app/commands/fever_api/read_favicons.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class FeverAPI::ReadFavicons
  ICON = "R0lGODlhAQABAIAAAObm5gAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="

  class << self
    def call(params)
      if params.key?(:favicons)
        { favicons: }
      else
        {}
      end
    end

    private

    def favicons
      [
        {
          id: 0,
          data: "image/gif;base64,#{ICON}"
        }
      ]
    end
  end
end