Sha256: 5d79824191752e168c24b125e0ca96a567b27396c51e6b0d822f562d3ef46a19
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true module Micro class Case class Result class Transitions MapEverything = -> (result, use_case_attributes) do result_track = result.success? ? :success : :failure { use_case: { class: result.use_case.class, attributes: use_case_attributes }, result_track => { type: result.type, result: result.data }, accessible_attributes: result.accessible_attributes } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
u-case-3.1.0 | lib/micro/case/result/transitions.rb |