Sha256: cf948737951e8aeda891c682b709740ae2c7767b431107ad3f8a9d4d58a7a0a0

Contents?: true

Size: 381 Bytes

Versions: 11

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module Floe
  class Workflow
    class Catcher
      attr_reader :error_equals, :next, :result_path

      def initialize(payload)
        @payload = payload

        @error_equals = payload["ErrorEquals"]
        @next         = payload["Next"]
        @result_path  = ReferencePath.new(payload.fetch("ResultPath", "$"))
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
floe-0.11.3 lib/floe/workflow/catcher.rb
floe-0.11.0 lib/floe/workflow/catcher.rb
floe-0.10.0 lib/floe/workflow/catcher.rb
floe-0.9.0 lib/floe/workflow/catcher.rb
floe-0.7.1 lib/floe/workflow/catcher.rb
floe-0.8.0 lib/floe/workflow/catcher.rb
floe-0.7.0 lib/floe/workflow/catcher.rb
floe-0.6.1 lib/floe/workflow/catcher.rb
floe-0.6.0 lib/floe/workflow/catcher.rb
floe-0.5.0 lib/floe/workflow/catcher.rb
floe-0.4.1 lib/floe/workflow/catcher.rb