Class: Gecko::Record::Image
Constant Summary collapse
- AVAILABLE_SIZES =
[:full, :thumbnail]
Instance Method Summary collapse
-
#url(size = :full) ⇒ String
URL for image.
Methods inherited from Base
demodulized_name, #initialize, #persisted?, #save
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
27 28 29 |
# File 'lib/gecko/record/image.rb', line 27 def url(size = :full) super() || build_url(size) end |