Class: HTTParty::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/rlastfm.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_debugObject Also known as: perform



55
56
57
58
59
60
# File 'lib/rlastfm.rb', line 55

def perform_with_debug
  if Rlastfm.debug
    puts "Performing request to: #{uri.to_s}"
  end
  perform_without_debug
end

#query_string_with_sorting(uri) ⇒ Object Also known as: query_string



65
66
67
68
# File 'lib/rlastfm.rb', line 65

def query_string_with_sorting(uri)
  unsorted = query_string_without_sorting(uri)
  unsorted.split("&").sort.join("&") if unsorted
end