Sha256: b146291968df39487c9f8a6148ce195b8c937511de8b56ec5b4a73dab346e040
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
# All code in the gem is namespaced under this module. module CoderWally # Stores all CoderWall attributes class CoderWall # :badges is the collection of user badges # :user is the `User` object (with badges and accounts) # :accounts is the `Account` object attr_reader :badges, :user, :accounts # Instantiate the class with data def initialize(user) @user = user @badges = user.badges @accounts = user.accounts end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coder_wally-1.0.2 | lib/coder_wally/coder_wall.rb |
coder_wally-1.0.1 | lib/coder_wally/coder_wall.rb |
coder_wally-1.0.0 | lib/coder_wally/coder_wall.rb |