class WsdlMapper::Runtime::Api

Attributes

_services[R]

Public Class Methods

new(backend) click to toggle source

@param [WsdlMapper::Runtime::SimpleHttpBackend] backend The backend to use

# File lib/wsdl_mapper/runtime/api.rb, line 15
def initialize(backend)
  @_backend = backend
  @_services = []
end

Public Instance Methods

_call(operation, *args) click to toggle source

Executes a request using the configured backend. @param [WsdlMapper::Runtime::Operation] operation Operation to call @param [Array] args Request input @return [Object] Response

# File lib/wsdl_mapper/runtime/api.rb, line 24
def _call(operation, *args)
  @_backend.dispatch operation, *args
end
_call_async(operation, args_promise) click to toggle source

Executes a request async using the configured backend. @param [WsdlMapper::Runtime::Operation] operation Operation to call @param [Concurrent::Promise] args_promise Promise for request input @return [Concurrent::Promise] Promise for the response

# File lib/wsdl_mapper/runtime/api.rb, line 32
def _call_async(operation, args_promise)
  @_backend.dispatch_async operation, args_promise
end
_load_requires() click to toggle source

Force preloading of requires for all contained services

# File lib/wsdl_mapper/runtime/api.rb, line 37
def _load_requires
  @_services.each(&:_load_requires)
end