Class: AssetDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/asset_drop.rb

Overview

AssetDrop represents media files from the media library.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#alt_text ⇒ Object

#dimensions ⇒ String

Returns:

  • (String)

#downloadable? ⇒ Boolean

Returns true if this AssetDrop is downloadable technically and per the settings on this SiteDrop.

Returns:

  • (Boolean)

See Also:

#downloadable_versions ⇒ Array<AssetDownloadableVersionDrop>

Returns:

#downloadable_versions_count ⇒ Integer

Returns:

  • (Integer)

#duration_seconds ⇒ Integer

Returns:

  • (Integer)

#embed_url ⇒ String

Returns:

  • (String)

#height ⇒ Integer

Returns:

  • (Integer)

#id ⇒ Integer

Returns:

  • (Integer)

#main_downloadable_url ⇒ String

Returns the download url of the main downloadable version or itself if it does not have downloadable versions

Returns:

  • (String)

#media? ⇒ Boolean

Returns:

  • (Boolean)

#media_type ⇒ String

Returns:

  • (String)

#pdf? ⇒ Boolean

Returns:

  • (Boolean)

#title ⇒ String

Returns:

  • (String)

#url ⇒ String

Returns:

  • (String)

#video? ⇒ Boolean

Returns:

  • (Boolean)

#width ⇒ Integer

Returns:

  • (Integer)