<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>te-nu</author_name>
  <author_url>https://blog.hatena.ne.jp/te-nu/</author_url>
  <blog_title>ウェブエンジニア珍道中</blog_title>
  <blog_url>https://www.te-nu.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyにおけるサービスクラスの作り方で、一つ作り方を考えたので残しておきます。 サービスクラスとは複数のモデルを使ってビジネスロジックを記述を行うものです、ここでの詳細は割愛しますが、以下の記事が有名でとても勉強になります。 qiita.com 例として「AとBを行うHogeService」を作ります。 ソース 実際のソースがこんな感じ。 module HogeService def execute(hoge, fuga) a(hoge) b(fuga) end def a(hoge) puts &quot;execute a action&quot; end def b(fuga) puts &quot;execute…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.te-nu.com%2Fentry%2F2019%2F03%2F02%2F185135&quot; title=&quot;Rubyのmoduleでサービスクラスを作る - ウェブエンジニア珍道中&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-03-02 18:51:35</published>
  <title>Rubyのmoduleでサービスクラスを作る</title>
  <type>rich</type>
  <url>https://www.te-nu.com/entry/2019/03/02/185135</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
