lib/coder_wally/builder.rb in coder_wally-0.1.0 vs lib/coder_wally/builder.rb in coder_wally-0.1.1
- old
+ new
@@ -20,10 +20,10 @@
User.new(data['name'], data['username'],
data['location'], data['team'], data['endorsements'])
end
# build CoderWall object from API response
- def build response
+ def build(response)
badges = parse_badges(response)
accounts = parse_accounts(response)
user = parse_user(response)
CoderWall.new badges, user, accounts