Class: Para::ActiveStorageDownloader

Inherits:
Object
  • Object
show all
Includes:
ActiveStorage::Downloading
Defined in:
lib/para/active_storage_downloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attachment) ⇒ ActiveStorageDownloader

Returns a new instance of ActiveStorageDownloader.



11
12
13
# File 'lib/para/active_storage_downloader.rb', line 11

def initialize(attachment)
  @attachment = attachment
end

Instance Attribute Details

#attachmentObject (readonly)

Returns the value of attribute attachment.



7
8
9
# File 'lib/para/active_storage_downloader.rb', line 7

def attachment
  @attachment
end