<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-ito27</author_name>
  <author_url>https://blog.hatena.ne.jp/m-ito27/</author_url>
  <blog_title>PLAY BALL</blog_title>
  <blog_url>https://blog.m-ito27.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>はじめに bankenというgemを使って権限管理をしたことがあるのですが、どのように実現しているのか興味があったため、一番主要なauthorize!メソッドを読んでみました。 github.com bankenのバージョンは1.0.3です まとめ 全体的に非常にシンプルなコードで特に難しいことはしていない Loyaltyを探すのはLoyaltyFinderという専用のクラスで担っている エラーはStandardErrorを継承し、newの引数にメッセージを渡している（独自のエラーを定義する方法を知らなかったので勉強になった） authorize!メソッドについて banken-1.0.3/l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.m-ito27.com%2Fentry%2F2024%2F06%2F29%2F195246&quot; title=&quot;【Ruby】Banken gemのauthorize!を読む - PLAY BALL&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>2024-06-29 19:52:46</published>
  <title>【Ruby】Banken gemのauthorize!を読む</title>
  <type>rich</type>
  <url>https://blog.m-ito27.com/entry/2024/06/29/195246</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
