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