Skip to content

Commit

Permalink
Rename get_response -> build_response
Browse files Browse the repository at this point in the history
It's more descriptive of what the method actually does
and it avoids confusion with the HTTP GET verb.
  • Loading branch information
Koronen committed Aug 1, 2013
1 parent 6feb67f commit c862664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fever_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c862664

Please sign in to comment.