Class: Micro::Case::Result::Transitions

Inherits:
Object
  • Object
show all
Defined in:
lib/micro/case/result/transitions.rb

Constant Summary collapse

MapEverything =
-> (result, use_case_attributes) do
  {
    use_case: { class: result.use_case.class, attributes: use_case_attributes },
    result.to_sym => { type: result.type, result: result.data },
    accessible_attributes: result.accessible_attributes
  }
end