Rev. | a12872389fb61f52bf95cdc2b68ad112483674b3 |
---|---|
大小 | 392 字节 |
时间 | 2021-03-19 12:24:33 |
作者 | HMML |
Log Message | Add 36126 amedas station file for backword compatibility.
|
class Forecast < ApplicationRecord
belongs_to :area
WEATHER_SYM_CLEAR_D = "d"
WEATHER_SYM_CLEAR_N = "n"
WEATHER_SYM_CLOUD = "c"
WEATHER_SYM_RAIN = "r"
WEATHER_SYM_SNOW = "s"
WEATHER_SYM_THUNDER = "t"
JMA_LABEL_TO_SYMBOL = {}
def self.weather_to_symbol
end
def weather_label=(str)
self[:weather_label] = str
str.blank? and self.weather_symbol = nil
end
end