Class: IActionable::Objects::ProfileLevel

Inherits:
IActionableObject show all
Defined in:
lib/riaction/iactionable/objects/profile_level.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currentObject

Returns the value of attribute current.



7
8
9
# File 'lib/riaction/iactionable/objects/profile_level.rb', line 7

def current
  @current
end

#nextObject

Returns the value of attribute next.



8
9
10
# File 'lib/riaction/iactionable/objects/profile_level.rb', line 8

def next
  @next
end