class Strapi::Media
The Content-Type for uploaded Strapi
photos, videos, and files
Public Instance Methods
url()
click to toggle source
# File lib/strapi/media.rb, line 21 def url return unless (url_string = @attributes[:url].presence) if url_string.include?('//') url_string else ENV['STRAPI_HOST_URL'] + url_string end end