class LHC::Request

def generate_url_from_template!

Experimental RBS support (using type sampling data from the type_fusion project).

def generate_url_from_template!: () -> Hash

This signature was generated using 38 samples from 2 applications.

Generates URL from a URL template
def generate_url_from_template!
  endpoint = LHC::Endpoint.new(options[:url])
  params =
    if format && options[:body].present? && options[:body].respond_to?(:as_json) && options[:body].as_json.is_a?(Hash)
      options[:body].as_json.merge(options[:params] || {}).deep_symbolize_keys
    else
      options[:params]
    end
  options[:url] = endpoint.compile(params)
  endpoint.remove_interpolated_params!(options[:params])
end