Sha256: 1f871408d24e17cc580d712700adc42fd4aac341da0d6488ac364c14ccf2455d

Contents?: true

Size: 689 Bytes

Versions: 3

Compression:

Stored size: 689 Bytes

Contents

# frozen_string_literal: true

class Grover
  #
  # Configuration of the options for Grover HTML to PDF conversion
  #
  class Configuration
    attr_accessor :options, :meta_tag_prefix, :ignore_path, :ignore_request,
                  :root_url, :use_pdf_middleware, :use_png_middleware,
                  :use_jpeg_middleware, :node_env_vars, :allow_file_uris

    def initialize
      @options = {}
      @meta_tag_prefix = 'grover-'
      @ignore_path = nil
      @ignore_request = nil
      @root_url = nil
      @use_pdf_middleware = true
      @use_png_middleware = false
      @use_jpeg_middleware = false
      @node_env_vars = {}
      @allow_file_uris = false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grover-1.1.11 lib/grover/configuration.rb
grover-1.1.10 lib/grover/configuration.rb
grover-1.1.9 lib/grover/configuration.rb