lib/hirefire/middleware.rb
def build_info_response
      entries = HireFire::Resource.dynos.map do |config|
        %({"name":"#{config[:name]}","quantity":#{config[:quantity].call || "null"}})
      end

      status                   = 200
      headers                  = Hash.new
      headers["Content-Type"]  = "application/json"
      headers["Cache-Control"] = "must-revalidate, private, max-age=0"
      body                     = "[" + entries.join(",") + "]"

      [status, headers, [body]]
    end
def build_info_response
      entries = HireFire::Resource.dynos.map do |config|
        %({"name":"#{config[:name]}","quantity":#{config[:quantity].call || "null"}})
      end

      status                   = 200
      headers                  = Hash.new
      headers["Content-Type"]  = "application/json"
      headers["Cache-Control"] = "must-revalidate, private, max-age=0"
      body                     = "[" + entries.join(",") + "]"

      [status, headers, [body]]
    end
Builds the response for the info path containing the configured
 queues and their sizes based on the HireFire::Resource configuration.

 @return [String] in application/json format.