lib/ads_common/api.rb
def prepare_wrapper(version, service)
      environment = config.read('service.environment')
      api_config.do_require(version, service)
      endpoint = api_config.endpoint(environment, version, service)
      interface_class_name = api_config.interface_name(version, service)

      wrapper = class_for_path(interface_class_name).new(@config, endpoint)
      auth_handler = get_auth_handler()
      header_ns =
          api_config.environment_config(environment, :header_ns) + version.to_s
      soap_handler = soap_header_handler(auth_handler, version, header_ns,
                                         wrapper.namespace)
      wrapper.header_handler = soap_handler

      return wrapper
    end
# Handle loading of a single service.
# Creates the wrapper, sets up handlers and creates an instance of it.
#
# Args:
# - version: intended API version, must be a symbol
# - service: name for the intended service
#
# Returns:
# - a simplified wrapper generated for the service
#
Handle loading of a single service.
Creates the wrapper, sets up handlers and creates an instance of it.

intended API version, must be a symbol
service: name for the intended service

a simplified wrapper generated for the service
Handle loading of a single service . Creates the wrapper sets up handlers and creates an instance of it . intended API version must be a symbol service : name for the intended service a simplified wrapper generated for the service
def prepare_wrapper(version, service)
      environment = config.read('service.environment')
      api_config.do_require(version, service)
      endpoint = api_config.endpoint(environment, version, service)
      interface_class_name = api_config.interface_name(version, service)
      wrapper = class_for_path(interface_class_name).new(@config, endpoint)
      auth_handler = get_auth_handler()
      header_ns =
          api_config.environment_config(environment, :header_ns) + version.to_s
      soap_handler = soap_header_handler(auth_handler, version, header_ns,
                                         wrapper.namespace)
      wrapper.header_handler = soap_handler
      return wrapper
    end
def prepare_wrapper ( version , service ) environment = config . read ( 'service.environment' ) api_config . do_require ( version , service ) endpoint = api_config . endpoint ( environment , version , service ) interface_class_name = api_config . interface_name ( version , service ) wrapper = class_for_path ( interface_class_name ) . new ( @config , endpoint ) auth_handler = get_auth_handler ( ) header_ns = api_config . environment_config ( environment , :header_ns ) + version . to_s soap_handler = soap_header_handler ( auth_handler , version , header_ns , wrapper . namespace ) wrapper . header_handler = soap_handler return wrapper end
Handle loading of a single service.
Handle loading of a single service .
version
service