Class: Course::DashboardStats::Result
- Inherits:
-
Data
- Object
- Data
- Course::DashboardStats::Result
- Defined in:
- app/services/course/dashboard_stats.rb
Overview
Computed dashboard data for a course.
Instance Attribute Summary collapse
-
#recent_enrollments ⇒ Object
readonly
Returns the value of attribute recent_enrollments.
-
#stats ⇒ Object
(also: #stats_hash)
readonly
Returns the value of attribute stats.
-
#topic_categories ⇒ Object
readonly
Returns the value of attribute topic_categories.
-
#topic_exams ⇒ Object
readonly
Returns the value of attribute topic_exams.
Instance Attribute Details
#recent_enrollments ⇒ Object (readonly)
Returns the value of attribute recent_enrollments
19 20 21 |
# File 'app/services/course/dashboard_stats.rb', line 19 def recent_enrollments @recent_enrollments end |
#stats ⇒ Object (readonly) Also known as: stats_hash
Returns the value of attribute stats
19 20 21 |
# File 'app/services/course/dashboard_stats.rb', line 19 def stats @stats end |
#topic_categories ⇒ Object (readonly)
Returns the value of attribute topic_categories
19 20 21 |
# File 'app/services/course/dashboard_stats.rb', line 19 def topic_categories @topic_categories end |
#topic_exams ⇒ Object (readonly)
Returns the value of attribute topic_exams
19 20 21 |
# File 'app/services/course/dashboard_stats.rb', line 19 def topic_exams @topic_exams end |