require "securerandom"

class SectionBuilder
  def call(manual, attrs)
    section_factory = SectionFactory.new(manual)
    section = section_factory.call(SecureRandom.uuid, [])

    section.update(attrs.reverse_merge(defaults))

    section
  end

private

  def defaults
    {
      minor_update: false,
      change_note: "New section added.",
    }
  end
end

require "securerandom"

class SectionBuilder
  def call(manual, attrs)
    section_factory = SectionFactory.new(manual)
    document = section_factory.call(SecureRandom.uuid, [])

    document.update(attrs.reverse_merge(defaults))

    document
  end

private

  def defaults
    {
      minor_update: false,
      change_note: "New section added.",
    }
  end
end

--- 
+++ 
@@ -3,11 +3,11 @@
 class SectionBuilder
   def call(manual, attrs)
     section_factory = SectionFactory.new(manual)
-    document = section_factory.call(SecureRandom.uuid, [])
+    section = section_factory.call(SecureRandom.uuid, [])
 
-    document.update(attrs.reverse_merge(defaults))
+    section.update(attrs.reverse_merge(defaults))
 
-    document
+    section
   end
 
 private
Rename document -> section in SectionBuilder
