Class: HtmlToPdf::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/htmlToPdf/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
# File 'lib/htmlToPdf/configuration.rb', line 5

def initialize
  @wkhtmltopdf_path = 'wkhtmltopdf'
  @default_layout   = 'application'
  @default_options  = {}
  @tmp_dir          = nil
end

Instance Attribute Details

#default_layoutObject

Returns the value of attribute default_layout.



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

def default_layout
  @default_layout
end

#default_optionsObject

Returns the value of attribute default_options.



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

def default_options
  @default_options
end

#tmp_dirObject

Returns the value of attribute tmp_dir.



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

def tmp_dir
  @tmp_dir
end

#wkhtmltopdf_pathObject

Returns the value of attribute wkhtmltopdf_path.



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

def wkhtmltopdf_path
  @wkhtmltopdf_path
end