Sha256: efe997eeddef0e188edcb1976bcccfe987558694cd4af310b38b293143914c41

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

module Dry
  class Transaction
    # A wrapper for storing together the step that failed
    # and value describing the failure.
    class StepFailure
      attr_reader :step
      attr_reader :value

      # @param step [Step]
      # @param value [Object]
      def initialize(step, value)
        @step = step
        @value = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-transaction-0.9.0 lib/dry/transaction/step_failure.rb