Sha256: 41de10471b3e00d909007cc6ec108809c5fc91777eec8ef160947aba3b789a7c

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 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
    module IO
      # Common configuration/code for all IO Job subclasses.
      class Base < Job
        attr_reader :path

        def initialize(name:, path:)
          super(name: name)

          raise ArgumentError, 'path is required' if path.to_s.empty?

          @path = path.to_s
        end
      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/io/base.rb
burner-1.0.0.pre.alpha.4 lib/burner/jobs/io/base.rb