class WeatherGov::AlertCollection
Public Class Methods
feature_class()
click to toggle source
# File lib/weather_gov/alert_collection.rb, line 8 def self.feature_class Alert end
Public Instance Methods
alerts()
click to toggle source
# File lib/weather_gov/alert_collection.rb, line 20 def alerts features end
summary()
click to toggle source
# File lib/weather_gov/alert_collection.rb, line 24 def summary features.map(&:summary_hash) end
title()
click to toggle source
# File lib/weather_gov/alert_collection.rb, line 16 def title data.fetch("title") end
update_time()
click to toggle source
# File lib/weather_gov/alert_collection.rb, line 12 def update_time @update_time ||= Time.parse(data.fetch("updated")) end