Class: IActionable::Objects::ProfilePoints
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::ProfilePoints
- Defined in:
- lib/riaction/iactionable/objects/profile_points.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
not always present.
-
#point_type ⇒ Object
Returns the value of attribute point_type.
-
#points ⇒ Object
Returns the value of attribute points.
-
#reason ⇒ Object
not always present.
Instance Method Summary collapse
-
#initialize(key_values = {}) ⇒ ProfilePoints
constructor
A new instance of ProfilePoints.
Methods inherited from IActionableObject
timestamp_regexp, timestamp_to_seconds
Constructor Details
#initialize(key_values = {}) ⇒ ProfilePoints
Returns a new instance of ProfilePoints.
13 14 15 16 17 18 |
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 13 def initialize(key_values={}) levels = key_values.delete("Level") @level = IActionable::Objects::ProfileLevel.new(levels) unless levels.nil? @point_type = IActionable::Objects::PointType.new(key_values.delete("PointType")) super(key_values) end |
Instance Attribute Details
#level ⇒ Object
not always present
8 9 10 |
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 8 def level @level end |
#point_type ⇒ Object
Returns the value of attribute point_type.
9 10 11 |
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 9 def point_type @point_type end |
#points ⇒ Object
Returns the value of attribute points.
10 11 12 |
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 10 def points @points end |
#reason ⇒ Object
not always present
11 12 13 |
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 11 def reason @reason end |