lib/coder_wally/client.rb in coder_wally-0.0.6 vs lib/coder_wally/client.rb in coder_wally-0.0.7

- old
+ new

@@ -46,13 +46,14 @@ # Builds a CoderWall object def build_coder_wall(username) json_response = JSON.load(send_request(uri_for_user(username))) badges = json_response['badges'].map { |badge| Badge.new(badge) } + accounts = Account.new(json_response['accounts']) user = User.new(json_response['name'], json_response['username'], - json_response['location'], json_response['team']) + json_response['location'], json_response['team'], json_response['endorsements']) - CoderWall.new badges, user + CoderWall.new badges, user, accounts end end end # Handles user not found exception