Class: URI::HTTP

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

Overview

Monkey patches for URI::HTTP

Instance Method Summary collapse

Instance Method Details

#merge_query(hash) ⇒ Object

Adds the hash to query



229
230
231
232
# File 'lib/casablanca/client.rb', line 229

def merge_query(hash)
  q = query ? query + '&' : ''
  self.query = "#{q}#{hash_to_uri_array(hash)}"
end