module Badges
  class Bits < Badges::Base
    def self.global_display
      resp = get "/v1/badges/global/display"
      unless resp.success? && resp.status == 200 && resp.body.dig('badge_sets', 'bits')
        return {}
      end

      resp.body['badge_sets']['bits']
    end
  end
end
