```ruby
required_attrs = [:source_branch, :target_branch, :title]

required_attrs.each do |attr|
  unless options.has_key?(attr) || options.has_key?(attr.to_s)
    raise MissingAttributes, "Missing '#{attr}' parameter"
  end
end
```