Class: IActionable::Objects::Achievement
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::Achievement
- Defined in:
- lib/riaction/iactionable/objects/achievement.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(key_values = {}) ⇒ Achievement
constructor
A new instance of Achievement.
Methods inherited from IActionableObject
timestamp_regexp, timestamp_to_seconds
Constructor Details
#initialize(key_values = {}) ⇒ Achievement
Returns a new instance of Achievement.
11 12 13 14 |
# File 'lib/riaction/iactionable/objects/achievement.rb', line 11 def initialize(key_values={}) initialize_awardable(key_values) super(key_values) end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/riaction/iactionable/objects/achievement.rb', line 7 def description @description end |
#image_url ⇒ Object
Returns the value of attribute image_url.
8 9 10 |
# File 'lib/riaction/iactionable/objects/achievement.rb', line 8 def image_url @image_url end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/riaction/iactionable/objects/achievement.rb', line 6 def key @key end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/riaction/iactionable/objects/achievement.rb', line 9 def name @name end |