Class: ActiveStorage::AttachmentDrop
- Inherits:
-
Liquidum::Drop
- Object
- Liquidum::Drop
- ActiveStorage::AttachmentDrop
- Defined in:
- lib/liquidum/liquid/drops/active_storage_attachment_drop.rb
Instance Method Summary collapse
Instance Method Details
#[](something) ⇒ Object
16 17 18 |
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 16 def [](something) @object.send(something).to_s end |
#content_type ⇒ Object
12 13 14 |
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 12 def content_type @object.content_type end |
#download ⇒ Object
4 5 6 |
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 4 def download @object.download end |
#filename ⇒ Object
8 9 10 |
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 8 def filename @object.filename.to_s end |