class WeatherSage::CacheEntry
Cache entry.
Public Instance Methods
valid?()
click to toggle source
Is this cache entry valid?
# File lib/weather-sage/cache-entry.rb, line 10 def valid? expires ? (Time.now.to_i < expires) : true end