# 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