<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arcright</author_name>
  <author_url>https://blog.hatena.ne.jp/arcright/</author_url>
  <blog_title>chulip.org</blog_title>
  <blog_url>https://chulip.org/</blog_url>
  <categories>
    <anon>FixtureReplacement</anon>
  </categories>
  <description>FactoryGirlで自分で作ったclassのFactoryを作りたかったんだけど setterがないので普通のやり方ではデータをセットできなかった class #-*- coding: utf-8 -*- class Hoge attr_reader :name def initialize(name) @name = name end end factory #-*- coding: utf-8 -*- FactoryGirl.define do factory :hoge, class: Hoge do name 'ほげ' end end 普通のやり方ってのが上記の方法。 Factor…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F20121018%2F1350640512&quot; title=&quot;setterがないclassをFactoryGirlで使うとき - chulip.org&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>2012-10-18 18:55:12</published>
  <title>setterがないclassをFactoryGirlで使うとき</title>
  <type>rich</type>
  <url>https://chulip.org/entry/20121018/1350640512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
