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_textObject

#dimensionsString

Returns:

  • (String)

#downloadable?Boolean

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

Returns:

  • (Boolean)

See Also:

#downloadable_versionsArray<AssetDownloadableVersionDrop>

Returns:

#downloadable_versions_countInteger

Returns:

  • (Integer)

#duration_secondsInteger

Returns:

  • (Integer)

#embed_urlString

Returns:

  • (String)

#heightInteger

Returns:

  • (Integer)

#idInteger

Returns:

  • (Integer)

#main_downloadable_urlString

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_typeString

Returns:

  • (String)

#pdf?Boolean

Returns:

  • (Boolean)

#titleString

Returns:

  • (String)

#urlString

Returns:

  • (String)

#video?Boolean

Returns:

  • (Boolean)

#widthInteger

Returns:

  • (Integer)