Sha256: 835e2438c6d28be21a778df88ca13c2d738111322b63b8cd494b7ba2b92509b3

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Workato
  module Connector
    module Sdk
      module Dsl
        module Call
          def call(method, *args)
            raise InvalidDefinitionError, "method '#{method}' does not exists" unless @_methods[method]

            instance_exec(*args, &@_methods[method])
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workato-connector-sdk-1.0.3 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.0.2 lib/workato/connector/sdk/dsl/call.rb