Class: UserBadges
- Inherits:
-
Object
- Object
- UserBadges
- Defined in:
- app/models/user_badges.rb
Overview
view model for user badges
Instance Attribute Summary collapse
-
#grant_count ⇒ Object
Returns the value of attribute grant_count.
-
#user_badges ⇒ Object
Returns the value of attribute user_badges.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ UserBadges
constructor
A new instance of UserBadges.
Constructor Details
#initialize(opts = {}) ⇒ UserBadges
Returns a new instance of UserBadges.
9 10 11 12 13 |
# File 'app/models/user_badges.rb', line 9 def initialize(opts = {}) @user_badges = opts[:user_badges] @username = opts[:username] @grant_count = opts[:grant_count] end |
Instance Attribute Details
#grant_count ⇒ Object
Returns the value of attribute grant_count.
7 8 9 |
# File 'app/models/user_badges.rb', line 7 def grant_count @grant_count end |
#user_badges ⇒ Object
Returns the value of attribute user_badges.
7 8 9 |
# File 'app/models/user_badges.rb', line 7 def user_badges @user_badges end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'app/models/user_badges.rb', line 7 def username @username end |