Class: Scorecard::AppliedBadge
- Inherits:
-
Object
- Object
- Scorecard::AppliedBadge
- Defined in:
- lib/scorecard/applied_badge.rb
Instance Attribute Summary collapse
-
#badge ⇒ Object
Returns the value of attribute badge.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #count ⇒ Object
- #gameables ⇒ Object
-
#initialize(identifier, user) ⇒ AppliedBadge
constructor
A new instance of AppliedBadge.
Constructor Details
#initialize(identifier, user) ⇒ AppliedBadge
Returns a new instance of AppliedBadge.
6 7 8 9 |
# File 'lib/scorecard/applied_badge.rb', line 6 def initialize(identifier, user) @user = user @badge = Scorecard.badges.find identifier end |
Instance Attribute Details
#badge ⇒ Object
Returns the value of attribute badge.
2 3 4 |
# File 'lib/scorecard/applied_badge.rb', line 2 def badge @badge end |
#user ⇒ Object
Returns the value of attribute user.
2 3 4 |
# File 'lib/scorecard/applied_badge.rb', line 2 def user @user end |