lib/petfinder/api.rb in petfinder-2.0.0 vs lib/petfinder/api.rb in petfinder-2.0.1
- old
+ new
@@ -9,10 +9,9 @@
[animals, pagination]
end
def animal(id)
- request("animals/#{id}")
Mash.new(request("animals/#{id}")['animal'])
end
def types
request("types")['types'].map { |type| Mash.new(type) }