You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: limit_exceeded.rb
    path of file: ./repos/discourse/lib/rate_limiter
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class RateLimiter
  def self.time_left(available_in)
    if available_in <= 3
      I18n.t("rate_limiter.short_time")
    elsif available_in < 1.minute.to_i
      I18n.t("rate_limiter.seconds", count: av
    
  def self.time_left(available_in)
    if available_in <= 3
      I18n.t("rate_limiter.short_time")
    elsif available_in < 1.minute.to_i
      I18n.t("rate_limiter.seconds", count: available_in)
    elsif available_in < 1.hour.to_i
      I18n.t("rate_limiter.minutes", count: (available_in / 1.minute.to_i))
    else
      I18n.t("rate_limiter.hours", count: (available_in / 1.hour.to_i))
    end