Class: Strapi::Media

Inherits:
ContentType show all
Defined in:
lib/strapi/media.rb

Overview

The Content-Type for uploaded Strapi photos, videos, and files

Instance Attribute Summary

Attributes inherited from ContentType

#attributes, #deleted, #id

Instance Method Summary collapse

Methods inherited from ContentType

#==, all, create, #delete, field, find, #initialize, plural_id, #save, where

Constructor Details

This class inherits a constructor from Strapi::ContentType

Instance Method Details

#urlObject



21
22
23
# File 'lib/strapi/media.rb', line 21

def url
  ENV['STRAPI_HOST_URL'] + @attributes['url']
end