ads_common/lib/ads_common/api.rb
def prepare_wrapper(version, service)
      api_config.do_require(version, service)
      endpoint = api_config.endpoint(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.config(: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)
      api_config.do_require(version, service)
      endpoint = api_config.endpoint(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.config(: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 ) api_config . do_require ( version , service ) endpoint = api_config . endpoint ( 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 . config ( :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 .