grape

https://github.com/intridea/grape

Ruby

An opinionated framework for creating REST-like APIs in Ruby.

Users::DestroyService#execute

Synchronously destroys +user+

The operation will fail if the user is the sole owner of any groups. To
force the groups to be destroyed, pass `delete_solo_owned_groups: true` in
+options+.

The user's contributions will be migrated to a global ghost user. To
force the contributions to be destroyed, pass `hard_delete: true` in
+options+.

`hard_delete: true` implies `delete_solo_owned_groups: true`.  To perform
a hard deletion without destroying solo-owned groups, pass
`delete_solo_owned_groups: false, hard_delete: true` in +options+.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Users--DestroyService-execute-for-pr


# Commit to git

git add git commit -m "better docs for Users::DestroyService#execute"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Users--DestroyService-execute-for-pr

hub pull-request


# Celebrate!