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