Sha256: 16c2a4d9a657c0b7155aaf6794d65b676af1381d9674533d21578c855c75bebb
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
# All code in the gem is namespaced under this module. module CoderWally # Stores user properties class User # Object properties attr_reader :badges, :accounts, :details # Initialise object with a hash of values def initialize(data, badges, accounts) @badges = badges @accounts = accounts @details = { name: data['name'], username: data['username'], location: data['location'], team: data['team'], endorsements: data['endorsements'] } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coder_wally-1.0.2 | lib/coder_wally/user.rb |
coder_wally-1.0.1 | lib/coder_wally/user.rb |
coder_wally-1.0.0 | lib/coder_wally/user.rb |