Class: Gotenberg::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gotenberg/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
13
# File 'lib/gotenberg/configuration.rb', line 5

def initialize
  @backtrace_dir = if defined?(Rails)
    Rails.root.join('tmp', 'gotenberg')
  else
    Dir.mktmpdir
  end

  @html_debug = false
end

Instance Attribute Details

#backtrace_dirObject

Returns the value of attribute backtrace_dir.



3
4
5
# File 'lib/gotenberg/configuration.rb', line 3

def backtrace_dir
  @backtrace_dir
end

#html_debugObject

Returns the value of attribute html_debug.



3
4
5
# File 'lib/gotenberg/configuration.rb', line 3

def html_debug
  @html_debug
end