Class: IActionable::Objects::ProfileSummary
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::ProfileSummary
- Defined in:
- lib/riaction/iactionable/objects/profile_summary.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#identifiers ⇒ Object
Returns the value of attribute identifiers.
-
#points ⇒ Object
Returns the value of attribute points.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#recent_achievements ⇒ Object
Returns the value of attribute recent_achievements.
Instance Method Summary collapse
-
#initialize(key_values = {}) ⇒ ProfileSummary
constructor
A new instance of ProfileSummary.
Methods inherited from IActionableObject
timestamp_regexp, timestamp_to_seconds
Constructor Details
#initialize(key_values = {}) ⇒ ProfileSummary
Returns a new instance of ProfileSummary.
15 16 17 18 19 20 21 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 15 def initialize(key_values={}) @identifiers = extract_many_as(key_values, "Identifiers", IActionable::Objects::Identifier) @points = extract_many_as(key_values, "Points", IActionable::Objects::ProfilePoints) @recent_achievements = extract_many_as(key_values, "RecentAchievements", IActionable::Objects::Achievement) super(key_values) end |
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
9 10 11 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 9 def display_name @display_name end |
#identifiers ⇒ Object
Returns the value of attribute identifiers.
10 11 12 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 10 def identifiers @identifiers end |
#points ⇒ Object
Returns the value of attribute points.
11 12 13 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 11 def points @points end |
#rank ⇒ Object
Returns the value of attribute rank.
13 14 15 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 13 def rank @rank end |
#recent_achievements ⇒ Object
Returns the value of attribute recent_achievements.
12 13 14 |
# File 'lib/riaction/iactionable/objects/profile_summary.rb', line 12 def recent_achievements @recent_achievements end |