Sha256: 9e6db9a892fea27e7564970ad5226c1c2b3daa1ca389be2876bb15c993ed1b2e

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 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, :js_runtime_bin,
                  :node_env_vars, :allow_file_uris

    def initialize # rubocop:disable Metrics/MethodLength
      @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
      @js_runtime_bin = ['node']
      @node_env_vars = {}
      @allow_file_uris = false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grover-1.2.1 lib/grover/configuration.rb
grover-1.2.0 lib/grover/configuration.rb