<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lhiroki1205</author_name>
  <author_url>https://blog.hatena.ne.jp/lhiroki1205/</author_url>
  <blog_title>技術ブログ</blog_title>
  <blog_url>https://lhiroki1205.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>Hash から文字列でもシンボルでも値を取り出す 先日のプルリクでhashの文字列とシンボルで取り出す実装をそれぞれ分けていたら、コメントで「with_indifferent_access」を利用してください。というコメントが.... なんだwith_indifferent_accessとは？と思い調べてみました。 with_indifferent_access 結論から言うと、Hash から文字列でもシンボルでも値を取り出す事が出来るメソッドです。 Ruby の Hash は key が文字列かシンボルかどうかを区別するので、文字列の場合は文字列のみ取得し、シンボルの場合はシンボルのみ取得し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flhiroki1205.hatenablog.com%2Fentry%2F2020%2F08%2F03%2F114426&quot; title=&quot;Hash から文字列でもシンボルでも値を取り出す - 技術ブログ&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>2020-08-03 11:44:26</published>
  <title>Hash から文字列でもシンボルでも値を取り出す</title>
  <type>rich</type>
  <url>https://lhiroki1205.hatenablog.com/entry/2020/08/03/114426</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
