Sha256: e60c765075a1fca0c5fd5c1385ab21986d0826e009291de64e827b96162910e3

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 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: Key::RECOVERY_POINT_FINISHED
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acidic_job-0.4.0 lib/acidic_job/response.rb
acidic_job-0.3.1 lib/acidic_job/response.rb
acidic_job-0.3.0 lib/acidic_job/response.rb
acidic_job-0.2.2 lib/acidic_job/response.rb
acidic_job-0.2.1 lib/acidic_job/response.rb