Sha256: 4e5621fefc46ea4bab0a442dd9487730fe529042bf0a23662908d259d49c3cd4
Contents?: true
Size: 182 Bytes
Versions: 2
Compression:
Stored size: 182 Bytes
Contents
module EorzeaWeather Zone = Struct.new(:id, :rates) do def find_rate(rate) rates.find { |(threshold, _weather)| threshold.nil? || rate < threshold }[1] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eorzea_weather-0.1.1 | lib/eorzea_weather/zone.rb |
eorzea_weather-0.1.0 | lib/eorzea_weather/zone.rb |