lib/onfido/resources/address.rb in onfido-0.15.1 vs lib/onfido/resources/address.rb in onfido-1.0.0
- old
+ new
@@ -1,8 +1,10 @@
module Onfido
class Address < Resource
def all(postcode)
- query_string = "postcode=#{postcode.delete(' ')}"
- get(url: url_for("addresses/pick?#{query_string}"))
+ get(
+ path: 'addresses/pick',
+ payload: { postcode: postcode.delete(' ') }
+ )
end
end
end