Class: Grover::Configuration
Overview
Configuration of the options for Grover HTML to PDF conversion
Instance Attribute Summary collapse
-
#allow_file_uris ⇒ Object
Returns the value of attribute allow_file_uris.
-
#ignore_path ⇒ Object
Returns the value of attribute ignore_path.
-
#ignore_request ⇒ Object
Returns the value of attribute ignore_request.
-
#js_runtime_bin ⇒ Object
Returns the value of attribute js_runtime_bin.
-
#meta_tag_prefix ⇒ Object
Returns the value of attribute meta_tag_prefix.
-
#node_env_vars ⇒ Object
Returns the value of attribute node_env_vars.
-
#options ⇒ Object
Returns the value of attribute options.
-
#root_url ⇒ Object
Returns the value of attribute root_url.
-
#use_jpeg_middleware ⇒ Object
Returns the value of attribute use_jpeg_middleware.
-
#use_pdf_middleware ⇒ Object
Returns the value of attribute use_pdf_middleware.
-
#use_png_middleware ⇒ Object
Returns the value of attribute use_png_middleware.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
rubocop:disable Metrics/MethodLength.
Constructor Details
#initialize ⇒ Configuration
rubocop:disable Metrics/MethodLength
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/grover/configuration.rb', line 13 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 |
Instance Attribute Details
#allow_file_uris ⇒ Object
Returns the value of attribute allow_file_uris.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def allow_file_uris @allow_file_uris end |
#ignore_path ⇒ Object
Returns the value of attribute ignore_path.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def ignore_path @ignore_path end |
#ignore_request ⇒ Object
Returns the value of attribute ignore_request.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def ignore_request @ignore_request end |
#js_runtime_bin ⇒ Object
Returns the value of attribute js_runtime_bin.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def js_runtime_bin @js_runtime_bin end |
#meta_tag_prefix ⇒ Object
Returns the value of attribute meta_tag_prefix.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def @meta_tag_prefix end |
#node_env_vars ⇒ Object
Returns the value of attribute node_env_vars.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def node_env_vars @node_env_vars end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def @options end |
#root_url ⇒ Object
Returns the value of attribute root_url.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def root_url @root_url end |
#use_jpeg_middleware ⇒ Object
Returns the value of attribute use_jpeg_middleware.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def use_jpeg_middleware @use_jpeg_middleware end |
#use_pdf_middleware ⇒ Object
Returns the value of attribute use_pdf_middleware.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def use_pdf_middleware @use_pdf_middleware end |
#use_png_middleware ⇒ Object
Returns the value of attribute use_png_middleware.
8 9 10 |
# File 'lib/grover/configuration.rb', line 8 def use_png_middleware @use_png_middleware end |