Registry / utility / interactor

interactor

JSON →
library3.2.0rbrubygemsunverified

Interactor provides a common interface for performing complex user interactions.

gem install interactor
INSTALL
IMPORT
SIG · INTERACTOR
I
interactor
utilityrubyv3.2.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.

Interactor
require 'interactor'

Define and call an interactor to encapsulate business logic

require 'interactor' class PlaceOrder include Interactor def call context.order = Order.create!(context.params) end end result = PlaceOrder.call(params: { product_id: 1 }) puts result.order
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
interactor — gem install interactor · libregistry