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