Sha256: 42b6443852fad82272b9b193eba1ee9fc1bb0c6be0611f5807144e26917a4ec6

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2020-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

module Burner
  class Jobs
    # Arbitrarily set value
    class Set < Job
      attr_reader :value

      def initialize(name:, value: nil)
        super(name: name)

        @value = value

        freeze
      end

      def perform(_output, payload)
        payload.value = value

        nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
burner-1.0.0.pre.alpha.5 lib/burner/jobs/set.rb
burner-1.0.0.pre.alpha.4 lib/burner/jobs/set.rb