Class: IActionable::Objects::LeaderboardReport
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::LeaderboardReport
- Defined in:
- lib/riaction/iactionable/objects/leaderboard_report.rb
Instance Attribute Summary collapse
-
#leaderboard ⇒ Object
Returns the value of attribute leaderboard.
-
#page_count ⇒ Object
Returns the value of attribute page_count.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#point_type ⇒ Object
Returns the value of attribute point_type.
-
#profiles ⇒ Object
Returns the value of attribute profiles.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(key_values = {}) ⇒ LeaderboardReport
constructor
A new instance of LeaderboardReport.
Methods inherited from IActionableObject
timestamp_regexp, timestamp_to_seconds
Constructor Details
#initialize(key_values = {}) ⇒ LeaderboardReport
Returns a new instance of LeaderboardReport.
15 16 17 18 19 20 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 15 def initialize(key_values={}) @leaderboard = IActionable::Objects::PointType.new(key_values.delete("Leaderboard")) @point_type = IActionable::Objects::PointType.new(key_values.delete("PointType")) @profiles = extract_many_as(key_values, "Profiles", IActionable::Objects::ProfileSummary) super(key_values) end |
Instance Attribute Details
#leaderboard ⇒ Object
Returns the value of attribute leaderboard.
11 12 13 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 11 def leaderboard @leaderboard end |
#page_count ⇒ Object
Returns the value of attribute page_count.
8 9 10 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 8 def page_count @page_count end |
#page_number ⇒ Object
Returns the value of attribute page_number.
9 10 11 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 9 def page_number @page_number end |
#point_type ⇒ Object
Returns the value of attribute point_type.
12 13 14 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 12 def point_type @point_type end |
#profiles ⇒ Object
Returns the value of attribute profiles.
13 14 15 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 13 def profiles @profiles end |
#total_count ⇒ Object
Returns the value of attribute total_count.
10 11 12 |
# File 'lib/riaction/iactionable/objects/leaderboard_report.rb', line 10 def total_count @total_count end |