Registry / utility / mutations

mutations

JSON →
library0.9.2rbrubygemsunverified

Compose your business logic into commands that sanitize and validate input.

gem install mutations
INSTALL
IMPORT
SIG · MUTATIONS
M
mutations
utilityrubyv0.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mutations
require 'mutations'

Define a command with input validation and execute it.

require 'mutations' class CreateUser < Mutations::Command required do string :name integer :age end def execute User.create!(name: name, age: age) end end outcome = CreateUser.run(name: 'Alice', age: 30) if outcome.success? puts outcome.result else puts outcome.errors.message end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mutations — gem install mutations · libregistry