{"categories":["\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0Ruby"],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyons.hatenablog.com%2Fentry%2F2019%2F10%2F05%2F115643\" title=\"\u52d5\u7684\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1/\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - Pyons Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","width":"100%","version":"1.0","blog_title":"Pyons Tech Blog","provider_name":"Hatena Blog","title":"\u52d5\u7684\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1/\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9","author_name":"Pyons","author_url":"https://blog.hatena.ne.jp/Pyons/","image_url":null,"published":"2019-10-05 11:56:43","url":"https://pyons.hatenablog.com/entry/2019/10/05/115643","blog_url":"https://pyons.hatenablog.com/","description":"\u52d5\u7684\u306a\u30e1\u30bd\u30c3\u30c9\u751f\u6210\u306f\u540c\u3058\u3088\u3046\u306a\u5f79\u5272\u3092\u6301\u3064\u30e1\u30bd\u30c3\u30c9\u3092\u5c11\u3057\u3065\u3064\u5f79\u5272\u3092\u5909\u3048\u3066\u3001\u52d5\u7684\u306b\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002 class Computer def initialize(computer_id, data_source) @id = computer_id @data_source = data_source end def self.define_component(name) define_method(name) do info = @data_source.send \"get_#{name}_info\", @id price = @data_source.send \"get_#{name}_p\u2026","provider_url":"https://hatena.blog"}