Class: IActionable::Objects::ProfileLevel
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::ProfileLevel
- Defined in:
- lib/riaction/iactionable/objects/profile_level.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#next ⇒ Object
Returns the value of attribute next.
Instance Method Summary collapse
-
#initialize(key_values = {}) ⇒ ProfileLevel
constructor
A new instance of ProfileLevel.
Methods inherited from IActionableObject
timestamp_regexp, timestamp_to_seconds
Constructor Details
#initialize(key_values = {}) ⇒ ProfileLevel
Returns a new instance of ProfileLevel.
10 11 12 13 |
# File 'lib/riaction/iactionable/objects/profile_level.rb', line 10 def initialize(key_values={}) @current = IActionable::Objects::Level.new(key_values.delete("Current")) unless key_values["Current"].blank? @next = IActionable::Objects::Level.new(key_values.delete("Next")) unless key_values["Next"].blank? end |
Instance Attribute Details
#current ⇒ Object
Returns the value of attribute current.
7 8 9 |
# File 'lib/riaction/iactionable/objects/profile_level.rb', line 7 def current @current end |
#next ⇒ Object
Returns the value of attribute next.
8 9 10 |
# File 'lib/riaction/iactionable/objects/profile_level.rb', line 8 def next @next end |