Class: Gecko::Record::Image
Constant Summary collapse
- AVAILABLE_SIZES =
%i[full thumbnail].freeze
Instance Method Summary collapse
-
#url(size = :full) ⇒ String
URL for image.
Methods inherited from Base
demodulized_name, #initialize, #persisted?, #save
Methods included from LiquidCompatibility
Methods included from Helpers::ValidationHelper
Methods included from Helpers::SerializationHelper
#_serialize, #as_json, #root, #serializable_hash, #serialize_attribute, #writeable?
Methods included from Helpers::InspectionHelper
Methods included from Helpers::AssociationHelper
Constructor Details
This class inherits a constructor from Gecko::Record::Base
Instance Method Details
#url(size = :full) ⇒ String
URL for image
32 33 34 |
# File 'lib/gecko/record/image.rb', line 32 def url(size = :full) super() || build_url(size) end |