lib/validic/rest/biometrics.rb in validic-0.4.1 vs lib/validic/rest/biometrics.rb in validic-0.5.0
- old
+ new
@@ -3,12 +3,11 @@
module Validic
module REST
module Biometrics
def get_biometrics(options = {})
- resp = get_request(:biometrics, options)
- build_response_attr(resp)
+ build_response(get_request(:biometrics, options))
end
def create_biometrics(options = {})
user_id = options.delete(:user_id)
options = { user_id: user_id, biometrics: options }
@@ -29,11 +28,10 @@
delete_request(:biometrics, options)
true
end
def latest_biometrics(options = {})
- resp = latest(:biometrics, options)
- build_response_attr(resp)
+ build_response(latest(:biometrics, options))
end
end
end
end