Registry / utility / service-actor

service-actor

JSON →
library5.0.0rbrubygemsunverified

Service Actor provides service objects for organizing your application logic into reusable, testable units.

gem install service_actor
INSTALL
IMPORT
SIG · SERVICE-ACTOR
S
service-actor
utilityrubyv5.0.0
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.

ServiceActor
require 'service_actor'

Define and call a service object.

require 'service_actor' class CreateUser < ServiceActor::Base input :name, :email output :user def call self.user = User.create!(name: name, email: email) end end result = CreateUser.call(name: 'Alice', email: 'alice@example.com') puts result.user.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
service-actor — gem install service-actor · libregistry