From c862664938529a8dbd3c0338a26ec36c0f09c309 Mon Sep 17 00:00:00 2001 From: Victor Koronen Date: Thu, 1 Aug 2013 20:16:32 +0200 Subject: [PATCH] Rename get_response -> build_response It's more descriptive of what the method actually does and it avoids confusion with the HTTP GET verb. --- fever_api.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fever_api.rb b/fever_api.rb index a2bc9463b..dd249109c 100644 --- a/fever_api.rb +++ b/fever_api.rb @@ -34,15 +34,15 @@ def authenticated?(api_key) get "/" do content_type :json - get_response(params) + build_response(params) end post "/" do content_type :json - get_response(params) + build_response(params) end - def get_response(params, is_json = true) + def build_response(params, is_json = true) response = {} response[:api_version] = 3 response[:auth] = 1