{"author_name":"tomotomo1129","type":"rich","blog_url":"https://job-info.hateblo.jp/","url":"https://job-info.hateblo.jp/entry/2024/08/23/093511","image_url":null,"published":"2024-08-23 09:35:11","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F08%2F23%2F093511\" title=\"Ruby\u3067Enum\u3092\u6271\u3046\u65b9\u6cd5 - Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","categories":["Ruby"],"version":"1.0","title":"Ruby\u3067Enum\u3092\u6271\u3046\u65b9\u6cd5","author_url":"https://blog.hatena.ne.jp/tomotomo1129/","description":"Ruby\u3067Enum\u3092\u6271\u3046\u65b9\u6cd5 Ruby\u3067Enum\u3092\u6271\u3046\u65b9\u6cd5 Ruby\u306b\u306f\u6a19\u6e96\u3067Enum\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001Enum\u3092\u6a21\u5023\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u306b\u305d\u306e\u4e00\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 class Status STATUS_PENDING = 1 STATUS_APPROVED = 2 STATUS_REJECTED = 3 def self.all { pending: STATUS_PENDING, approved: STATUS_APPROVED, rejected: STATUS_REJECTED } end def self.for(key) all[key.to_sym] end\u2026","height":"190","blog_title":"Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8"}