Class: HTTParty::Request
- Inherits:
-
Object
- Object
- HTTParty::Request
- Defined in:
- lib/rlastfm.rb
Instance Method Summary collapse
- #perform_with_debug ⇒ Object (also: #perform)
- #query_string_with_sorting(uri) ⇒ Object (also: #query_string)
Instance Method Details
#perform_with_debug ⇒ Object 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 |