Class: Paperclip::DocsplitChaining

Inherits:
Processor
  • Object
show all
Defined in:
lib/docsplit-paperclip-processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}, attachment = nil) ⇒ DocsplitChaining

Returns a new instance of DocsplitChaining.



20
21
22
23
24
# File 'lib/docsplit-paperclip-processor.rb', line 20

def initialize(file, options = {}, attachment = nil)
  super
  @options    = options
  @attachment = attachment
end

Instance Attribute Details

#attachmentObject

Returns the value of attribute attachment.



18
19
20
# File 'lib/docsplit-paperclip-processor.rb', line 18

def attachment
  @attachment
end

#optionsObject

Returns the value of attribute options.



18
19
20
# File 'lib/docsplit-paperclip-processor.rb', line 18

def options
  @options
end

Instance Method Details

#makeObject



26
27
28
# File 'lib/docsplit-paperclip-processor.rb', line 26

def make
  attachment.to_file(options[:from_style] || :original)
end