lib/external_count_fetcher.rb
# Public: fetches all counts from external services.
fetches all counts from external services.
fetches all counts from external services .
def counts
    REDIS_KEYS.each_with_object({}) do |key, hash|
      hash[key] = redis_counter(key).value
    end
  end
def counts REDIS_KEYS . each_with_object ( { } ) do | key , hash | hash [ key ] = redis_counter ( key ) . value end end
Public: fetches all counts from external services.
Public : fetches all counts from external services .