Class: ActiveStorage::AttachmentDrop

Inherits:
Liquidum::Drop
  • Object
show all
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_typeObject



12
13
14
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 12

def content_type
  @object.content_type
end

#downloadObject



4
5
6
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 4

def download
  @object.download
end

#filenameObject



8
9
10
# File 'lib/liquidum/liquid/drops/active_storage_attachment_drop.rb', line 8

def filename
  @object.filename.to_s
end