lib/pdf_mage/workers/base.rb
def pdf_filename(export_id)
        unless string_exists?(export_id)
          raise ArgumentError, 'export_id must be a string that includes at least 1 ASCII character.'
        end

        unless string_exists?(CONFIG.export_directory)
          raise ArgumentError, '
            The export_directory in your config.yml must be a string that includes at least 1 ASCII character.
          '
        end

        filename = "#{CONFIG.export_directory}/#{export_id}"
        filename += '.pdf' unless export_id.end_with?('.pdf')

        filename
      end
# Generates a filename for a unique PDF identifier using the pdf directory specified in the config and the given
# pdf id.
#
# @param [String] export_id - Export identifier to make filename from
# @return [String] filename to store PDF at
#
# @raise [ArgumentError] if export_id is nil or an empty string
# @raise [ArgumentError] if CONFIG.export_directory is nil or an empty string
Generates a filename for a unique PDF identifier using the pdf directory specified in the config and the given
pdf id.
Generates a filename for a unique PDF identifier using the pdf directory specified in the config and the given pdf id .
def pdf_filename(export_id)
        unless string_exists?(export_id)
          raise ArgumentError, 'export_id must be a string that includes at least 1 ASCII character.'
        end
        unless string_exists?(CONFIG.export_directory)
          raise ArgumentError, '
            The export_directory in your config.yml must be a string that includes at least 1 ASCII character.
          '
        end
        filename = "#{CONFIG.export_directory}/#{export_id}"
        filename += '.pdf' unless export_id.end_with?('.pdf')
        filename
      end
def pdf_filename ( export_id ) unless string_exists? ( export_id ) raise ArgumentError , 'export_id must be a string that includes at least 1 ASCII character.' end unless string_exists? ( CONFIG . export_directory ) raise ArgumentError , '
            The export_directory in your config.yml must be a string that includes at least 1 ASCII character.
          ' end filename = "#{CONFIG.export_directory}/#{export_id}" filename += '.pdf' unless export_id . end_with? ( '.pdf' ) filename end
Generates a filename for a unique PDF identifier using the pdf directory specified in the config and the given
pdf id.
Generates a filename for a unique PDF identifier using the pdf directory specified in the config and the given pdf id .
filename to store PDF at
filename to store PDF at
String
[ArgumentError] if export_id is nil or an empty string
[ ArgumentError ] if export_id is nil or an empty string
[ArgumentError] if CONFIG.export_directory is nil or an empty string
[ ArgumentError ] if CONFIG . export_directory is nil or an empty string
export_id
Export identifier to make filename from
Export identifier to make filename from