Class: Course::DashboardStats::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/course/dashboard_stats.rb

Overview

Computed dashboard data for a course.

Instance Attribute Summary collapse

Instance Attribute Details

#recent_enrollmentsObject (readonly)

Returns the value of attribute recent_enrollments

Returns:

  • (Object)

    the current value of recent_enrollments



19
20
21
# File 'app/services/course/dashboard_stats.rb', line 19

def recent_enrollments
  @recent_enrollments
end

#statsObject (readonly) Also known as: stats_hash

Returns the value of attribute stats

Returns:

  • (Object)

    the current value of stats



19
20
21
# File 'app/services/course/dashboard_stats.rb', line 19

def stats
  @stats
end

#topic_categoriesObject (readonly)

Returns the value of attribute topic_categories

Returns:

  • (Object)

    the current value of topic_categories



19
20
21
# File 'app/services/course/dashboard_stats.rb', line 19

def topic_categories
  @topic_categories
end

#topic_examsObject (readonly)

Returns the value of attribute topic_exams

Returns:

  • (Object)

    the current value of topic_exams



19
20
21
# File 'app/services/course/dashboard_stats.rb', line 19

def topic_exams
  @topic_exams
end