Class: IActionable::Objects::ProfilePoints

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#levelObject

not always present



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

def level
  @level
end

#point_typeObject

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

#pointsObject

Returns the value of attribute points.



10
11
12
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 10

def points
  @points
end

#reasonObject

not always present



11
12
13
# File 'lib/riaction/iactionable/objects/profile_points.rb', line 11

def reason
  @reason
end