Class: Badginator::Status
- Inherits:
-
Object
- Object
- Badginator::Status
- Defined in:
- lib/badginator/status.rb
Instance Attribute Summary collapse
-
#awarded_badge ⇒ Object
readonly
Returns the value of attribute awarded_badge.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize(args = {}) ⇒ Status
Returns a new instance of Status.
5 6 7 8 |
# File 'lib/badginator/status.rb', line 5 def initialize(args = {}) @code = args[:code] @awarded_badge = args[:badge] end |
Instance Attribute Details
#awarded_badge ⇒ Object (readonly)
Returns the value of attribute awarded_badge.
3 4 5 |
# File 'lib/badginator/status.rb', line 3 def awarded_badge @awarded_badge end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/badginator/status.rb', line 3 def code @code end |