• R/O
  • HTTP
  • SSH
  • HTTPS

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

File Info

Révision a12872389fb61f52bf95cdc2b68ad112483674b3
Taille 392 octets
l'heure 2021-03-19 12:24:33
Auteur HMML
Message de Log

Add 36126 amedas station file for backword compatibility.

Content

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