Class: Paperclip::Storage::Dropbox::PrivateUrlGenerator

Inherits:
UrlGenerator
  • Object
show all
Defined in:
lib/paperclip/storage/dropbox/private_url_generator.rb

Instance Method Summary collapse

Methods inherited from UrlGenerator

#generate, #initialize

Constructor Details

This class inherits a constructor from Paperclip::Storage::Dropbox::UrlGenerator

Instance Method Details

#file_url(style) ⇒ Object



6
7
8
# File 'lib/paperclip/storage/dropbox/private_url_generator.rb', line 6

def file_url(style)
  @attachment.dropbox_client.media(@attachment.path(style))["url"]
end