Sha256: 375e3848038eebd01003505575ef01b1f6d2973e8919a6dcd7db4ff9ed04d1a1

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

# Represents an action to set a new API response (which will be stored onto an
# idempotency key). One  possible option for a return from an #atomic_phase
# block.
module AcidicJob
  class Response
    def call(key:)
      key.update!(
        locked_at: nil,
        recovery_point: AcidicJobKey::RECOVERY_POINT_FINISHED
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acidic_job-0.2.0 lib/acidic_job/response.rb