Sha256: 9cbb763f7ad6053e8bb000a999a0eff6fc90ea9317992837e6ef1c0376080300

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 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.
class Response
  def call(key:)
    key.update!(
      locked_at: nil,
      recovery_point: :FINISHED
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acidic_job-0.1.5 lib/acidic_job/response.rb
acidic_job-0.1.4 lib/acidic_job/response.rb
acidic_job-0.1.3 lib/acidic_job/response.rb
acidic_job-0.1.2 lib/acidic_job/response.rb