Sha256: 474fec5a584b004e239e99e30e3edc4f5e2addbae400f41192948775495b26a6

Contents?: true

Size: 448 Bytes

Versions: 10

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

module Micro
  class Case
    class Result
      class Transitions
        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
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
u-case-4.5.2 lib/micro/case/result/transitions.rb
u-case-4.5.1 lib/micro/case/result/transitions.rb
u-case-4.5.0 lib/micro/case/result/transitions.rb
u-case-4.4.0 lib/micro/case/result/transitions.rb
u-case-4.3.0 lib/micro/case/result/transitions.rb
u-case-4.2.2 lib/micro/case/result/transitions.rb
u-case-4.2.1 lib/micro/case/result/transitions.rb
u-case-4.2.0 lib/micro/case/result/transitions.rb
u-case-4.1.1 lib/micro/case/result/transitions.rb
u-case-4.1.0 lib/micro/case/result/transitions.rb