def alerts(location)
      response = get('alerts', location)
      ret = []
      count = 0
      response['alerts'].each do |a|
        ret[count] = {
          type: a['type'],
          description: a['description'],
          date: Time.parse(a['date']),
          expires: Time.parse(a['expires']),
          message: a['message']
        }
        count += 1
      end

      ret
    end
def alerts(location)
      response = get('alerts', location)
      ret = []
      count = 0
      response['alerts'].each do |a|
        ret[count] = {
          type: a['type'],
          description: a['description'],
          date: Time.parse(a['date']),
          expires: Time.parse(a['expires']),
          message: a['message']
        }
        count += 1
      end

      ret
    end
Gets alert information for a location.
 @param location [String] The place to get the alert data for.
 @return [Array<Hash<Symbol, String>>] A list of alerts for the given location. The array will be empty if there
   are no alerts. Each value in the array is a hash containing symbol keys:

   * `:type` (`String`) — The 3 character identifier for the alert type (see Wunderground API docs)
   * `:description` (`String`) — The full name of the alert type
   * `:date` (`Time`) — The date that the alert begins to take effect, using the local timezone to this location.
   * `:expires` (`Time`) — The date that the alert is no longer in effect, using the local timezone to this location.
   * `:message` (`String`) — The full message for the alert (this is usually dozens of paragraphs long)