lib/petfinder/client.rb in petfinder-0.1.0 vs lib/petfinder/client.rb in petfinder-0.1.1

- old
+ new

@@ -23,10 +23,11 @@ Pet.parse(response, :single => true) end # Options available: animal, breed, size, sex, location, shelterid def random_pet(options = {}) - response = perform_get("/pet.getRandom", :query => {:output => 'full'}) + query = options.merge(:output => 'full') + response = perform_get("/pet.getRandom", :query => query) Pet.parse(response, :single => true) end # Options available: breed, size, sex, age, offset, count def find_pets(animal_type, location, options = {}) \ No newline at end of file