Class: CourseDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
NotificationSettingProvidingDropConcern, ShareableDropConcerns
Defined in:
app/drops/course_drop.rb

Overview

CourseDrop represents a course. It's available as the top-level course on course and course lesson pages, and as a reference on CourseDrop and CourseModuleDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#accessible?Boolean

Returns:

  • (Boolean)

#allow_comments?Boolean

Returns:

  • (Boolean)

#any_lesson_accessible?Boolean

Returns:

  • (Boolean)

#authorsArray<UserDrop>

Returns:

#catalog_imageObject

Returns:

  • (Object)

#comment_without_login?Boolean

Returns:

  • (Boolean)

#completed_lessons_countInteger

Returns:

  • (Integer)

#completed_percentageInteger

Returns:

  • (Integer)

#completion_enabled?Boolean

Returns:

  • (Boolean)

#descriptionString

Returns:

  • (String)

#description_background_image_urlString

Returns:

  • (String)

#display_modeString

Returns:

  • (String)

#first_incomplete_lessonCourseLessonDrop

Returns:

#idInteger

Returns:

  • (Integer)

#internal_nameString

Returns:

  • (String)

#lessonsArray<CourseLessonDrop>

Returns:

#lessons_countInteger

Returns:

  • (Integer)

#meta_dataMetaDataDrop

Returns:

#modulesArray<CourseModuleDrop>

Returns:

#modules_countInteger

Returns:

  • (Integer)

#notification_settingNotificationSettingDrop

#pathString

Returns:

  • (String)

#podcast_info_urlString

Returns a URL with information for subscribing to this course as a podcast, or nil if not enabled or available for the current user.

Returns:

  • (String)

#podcast_urlString

Returns the URL for this course's podcast RSS feed, or nil if not enabled or available for the current user.

Returns:

  • (String)

#prevent_downloads?Object

Returns true if downloading of assets is disabled for this course.

See Also:

  • @return [Boolean]

#short_descriptionString

Returns:

  • (String)

#show_lesson_author?Boolean

Returns:

  • (Boolean)

#show_lesson_updated_at?Boolean

Returns:

  • (Boolean)

#show_unauthorizedString

Returns:

  • (String)

#show_unauthorized?Boolean

Returns:

  • (Boolean)

#siteSiteDrop

Returns:

#titleString

Returns:

  • (String)

#unauthorized_btn_labelString

Returns:

  • (String)

#unauthorized_messageString

Returns:

  • (String)

#urlString

Returns:

  • (String)

#visible?Boolean

Returns:

  • (Boolean)