Class: IActionable::Objects::Level

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#numberObject

Returns the value of attribute number.



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

def number
  @number
end

#required_pointsObject

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