<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinkAmi</author_name>
  <author_url>https://blog.hatena.ne.jp/thinkAmi/</author_url>
  <blog_title>メモ的な思考的な</blog_title>
  <blog_url>https://thinkami.hatenablog.com/</blog_url>
  <categories>
    <anon>Heroku</anon>
    <anon>Padrino</anon>
    <anon>Ruby</anon>
  </categories>
  <description>前回はグラフ化をしてみましたが、その実装をする時に色々と悩んだため、忘れないようにメモとリンクを残しておきます。 ■良くない設計：リンゴの種類をYAMLファイルに持たせたこと 本来ならDBにマスタとして入れておくのが正解なのでしょうが、YAMLファイル一つでリンゴの種類と色をメンテナンスしたいと考えました。 実装方法としてはいかがなものかという内容ですが、個人的なものだったので、以下の方法を採用しました。 リンゴの種類と、Highchartsで表示した時の色を、YAMLファイルに記載 Appleテーブルは色を持たない モデルへ入れる際のSELECTで、ダミーの列を取得 JSONで渡す際に、ap…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F20130314%2F1363209791&quot; title=&quot;Ruby + Heroku + Highchartsで食べたリンゴの割合をグラフ化してみた、時に悩んだことのまとめ - メモ的な思考的な&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-14 06:23:11</published>
  <title>Ruby + Heroku + Highchartsで食べたリンゴの割合をグラフ化してみた、時に悩んだことのまとめ</title>
  <type>rich</type>
  <url>https://thinkami.hatenablog.com/entry/20130314/1363209791</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
