lib/triviacrack/api/profile.rb in triviacrack-0.5.1 vs lib/triviacrack/api/profile.rb in triviacrack-0.6.0

- old
+ new

@@ -19,11 +19,11 @@ # Returns the TriviaCrack::Profile for the given user. # Raises TriviaCrack::Errors::RequestError if the request fails. def get_profile(user_id) response = get "/api/users/#{@session.user_id}/profiles/#{user_id}" - TriviaCrack::Parsers::ProfileParser.parse response.body + TriviaCrack::Parsers::ProfileParser.parse response end # Public: Uses the Trivia Crack API to get the profile of current user. # # Examples @@ -34,10 +34,10 @@ # Raises TriviaCrack::Errors::RequestError if the request fails. def get_my_profile response = get "/api/users/#{@session.user_id}/profiles/#{@session.user_id}" - TriviaCrack::Parsers::ProfileParser.parse response.body + TriviaCrack::Parsers::ProfileParser.parse response end end end end