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)

#authors ⇒ Array<UserDrop>

Returns:

#catalog_image ⇒ Object

Returns:

  • (Object)

#comment_without_login? ⇒ Boolean

Returns:

  • (Boolean)

#completed_lessons_count ⇒ Integer

Returns:

  • (Integer)

#completed_percentage ⇒ Integer

Returns:

  • (Integer)

#completion_enabled? ⇒ Boolean

Returns:

  • (Boolean)

#description ⇒ String

Returns:

  • (String)

#description_background_image_url ⇒ String

Returns:

  • (String)

#display_mode ⇒ String

Returns:

  • (String)

#first_incomplete_lesson ⇒ CourseLessonDrop

Returns:

#id ⇒ Integer

Returns:

  • (Integer)

#internal_name ⇒ String

Returns:

  • (String)

#lessons ⇒ Array<CourseLessonDrop>

Returns:

#lessons_count ⇒ Integer

Returns:

  • (Integer)

#meta_data ⇒ MetaDataDrop

Returns:

#modules ⇒ Array<CourseModuleDrop>

Returns:

#modules_count ⇒ Integer

Returns:

  • (Integer)

#notification_setting ⇒ NotificationSettingDrop

#path ⇒ String

Returns:

  • (String)

#podcast_info_url ⇒ String

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_url ⇒ String

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_description ⇒ String

Returns:

  • (String)

#show_lesson_author? ⇒ Boolean

Returns:

  • (Boolean)

#show_lesson_updated_at? ⇒ Boolean

Returns:

  • (Boolean)

#show_unauthorized ⇒ String

Returns:

  • (String)

#show_unauthorized? ⇒ Boolean

Returns:

  • (Boolean)

#site ⇒ SiteDrop

Returns:

#title ⇒ String

Returns:

  • (String)

#unauthorized_btn_label ⇒ String

Returns:

  • (String)

#unauthorized_message ⇒ String

Returns:

  • (String)

#url ⇒ String

Returns:

  • (String)

#visible? ⇒ Boolean

Returns:

  • (Boolean)