Class: Paperclip::Storage::Dropbox::PathGenerator
- Inherits:
-
Object
- Object
- Paperclip::Storage::Dropbox::PathGenerator
- Defined in:
- lib/paperclip/storage/dropbox/path_generator.rb
Instance Method Summary collapse
- #generate(style) ⇒ Object
-
#initialize(attachment, attachment_options) ⇒ PathGenerator
constructor
A new instance of PathGenerator.
Constructor Details
#initialize(attachment, attachment_options) ⇒ PathGenerator
Returns a new instance of PathGenerator.
8 9 10 11 |
# File 'lib/paperclip/storage/dropbox/path_generator.rb', line 8 def initialize(, ) = = end |
Instance Method Details
#generate(style) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/paperclip/storage/dropbox/path_generator.rb', line 13 def generate(style) path = if normal_path_style? generate_from_string(style) else generate_from_proc(style) end path end |