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

- old
+ new

@@ -1,16 +1,17 @@ # All code in the gem is namespaced under this module. module CoderWally # Stores user properties class User # Object properties - attr_reader :name, :username, :location, :team + attr_reader :name, :username, :location, :team, :endorsements # Initialise object with a hash of values - def initialize(name, username, location, team) + def initialize(name, username, location, team, endorsements) @name = name @username = username @location = location @team = team + @endorsements = endorsements end end end \ No newline at end of file