lib/codewars_api/user.rb in codewars_api-0.4.0 vs lib/codewars_api/user.rb in codewars_api-0.4.1

- old
+ new

@@ -1,10 +1,10 @@ module CodewarsApi class User include Common def initialize(id_or_username) - fail 'Username or id is not set' unless id_or_username + raise 'Username or id is not set' unless id_or_username @response = RequestHelper.get("#{CodewarsApi::API_URL}/users/#{id_or_username}") ResponseChecker.check_errors(@response) end def username