Module: DerivativeRodeo::Services::PdfSplitterService

Defined in:
lib/derivative_rodeo/services/pdf_splitter_service.rb

Class Method Summary collapse

Class Method Details

.for(name) ⇒ PdfSplitter::Base

Find the DerivativeRodeo::Services::PdfSplitter::Base with the given name.

Parameters:

  • name (#to_s)

Returns:



13
14
15
16
# File 'lib/derivative_rodeo/services/pdf_splitter_service.rb', line 13

def self.for(name)
  klass_name = "#{name.to_s.classify}_page".classify
  "DerivativeRodeo::Services::PdfSplitter::#{klass_name}".constantize
end