<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>当たり前の話だけどそれにちょっとトリビアをつける 環境 $ ruby -v ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18] $ bin/rails -v Rails 5.2.2 使い方 ENV[{{キー名}}] で値が取れる $ HOGE=huge irb と起動すれば ENV[&quot;HOGE&quot;] #=&gt; &quot;huge&quot; という形で取得できる 注意点 ENVはキーも値もすべて文字列 数字を指定しても、すべて文字列になってしまうので注意 $ ATAI=120 irb ENV[&quot;ATAI&quot;] #=&gt; &quot;120&quot; という感じに文字列とし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F07%2F09%2F000000&quot; title=&quot;Rubyで環境変数を取るときはENVオブジェクトを使えばとれる - コード日進月歩&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>2019-07-09 00:00:00</published>
  <title>Rubyで環境変数を取るときはENVオブジェクトを使えばとれる</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2019/07/09/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
