Sha256: 509faf721d0c42822db41fe136fc33370de5dce36e4d15b21e9e1d0377f7cadb
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
# 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, :endorsements # Initialise object with a hash of values def initialize(data) @name = data['name'] @username = data['username'] @location = data['location'] @team = data['team'] @endorsements = data['endorsements'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coder_wally-0.1.2 | lib/coder_wally/user.rb |