Class: CoderWally::CoderWall
- Inherits:
-
Object
- Object
- CoderWally::CoderWall
- Defined in:
- lib/coder_wally/coder_wall.rb
Overview
Stores all CoderWall attributes
Instance Attribute Summary collapse
-
#accounts ⇒ Object
readonly
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object.
-
#badges ⇒ Object
readonly
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object.
-
#user ⇒ Object
readonly
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object.
Instance Method Summary collapse
-
#initialize(user) ⇒ CoderWall
constructor
Instantiate the class with data.
Constructor Details
#initialize(user) ⇒ CoderWall
Instantiate the class with data
11 12 13 14 15 |
# File 'lib/coder_wally/coder_wall.rb', line 11 def initialize(user) @user = user @badges = user.badges @accounts = user.accounts end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object
8 9 10 |
# File 'lib/coder_wally/coder_wall.rb', line 8 def accounts @accounts end |
#badges ⇒ Object (readonly)
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object
8 9 10 |
# File 'lib/coder_wally/coder_wall.rb', line 8 def badges @badges end |
#user ⇒ Object (readonly)
:badges is the collection of user badges :user is the ‘User` object (with badges and accounts) :accounts is the `Account` object
8 9 10 |
# File 'lib/coder_wally/coder_wall.rb', line 8 def user @user end |