{"height":"190","width":"100%","image_url":null,"published":"2013-05-17 15:10:49","blog_title":"by shigemk2","blog_url":"https://www.shigemk2.com/","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","author_name":"shigemk2","version":"1.0","author_url":"https://blog.hatena.ne.jp/shigemk2/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130517%2F1368771049\" title=\"\u6295\u7a3f\u3066\u3059\u3068 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u306f\u3066\u306a","Ruby"],"url":"https://www.shigemk2.com/entry/20130517/1368771049","title":"\u6295\u7a3f\u3066\u3059\u3068","description":"\u9069\u5f53\u306a\u30c6\u30b9\u30c8 # -*- coding: utf-8 -*- require 'rubygems' require 'atomutil' module Atompub class HatenaClient < Client def publish_entry(uri) @hatena_publish = true update_resource(uri, ' ', Atom::MediaType::ENTRY.to_s) ensure @hatena_publish = false end private def set_common_info(req) req['X-Hatena-Publi\u2026"}