lib/trubl/client.rb
def cached_url(path, params)
      url = full_url(path)

      return url if params.blank?

      query = params.sort.map { |pair| "#{pair[0]}=#{pair[1]}" }.join('&')
      [url, query].join('?')
    end
# Fully qualified url with sorted params (used for caching)
Fully qualified url with sorted params (used for caching)
Fully qualified url with sorted params ( used for caching )
def cached_url(path, params)
      url = full_url(path)
      return url if params.blank?
      query = params.sort.map { |pair| "#{pair[0]}=#{pair[1]}" }.join('&')
      [url, query].join('?')
    end
def cached_url ( path , params ) url = full_url ( path ) return url if params . blank? query = params . sort . map { | pair | "#{pair[0]}=#{pair[1]}" } . join ( '&' ) [ url , query ] . join ( '?' ) end
Fully qualified url with sorted params (used for caching)
Fully qualified url with sorted params ( used for caching )
path
params