Class: HtmlToPdf::Configuration
- Inherits:
-
Object
- Object
- HtmlToPdf::Configuration
- Defined in:
- lib/htmlToPdf/configuration.rb
Instance Attribute Summary collapse
-
#default_layout ⇒ Object
Returns the value of attribute default_layout.
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#tmp_dir ⇒ Object
Returns the value of attribute tmp_dir.
-
#wkhtmltopdf_path ⇒ Object
Returns the value of attribute wkhtmltopdf_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_layout ⇒ Object
Returns the value of attribute default_layout.
3 4 5 |
# File 'lib/htmlToPdf/configuration.rb', line 3 def default_layout @default_layout end |
#default_options ⇒ Object
Returns the value of attribute default_options.
3 4 5 |
# File 'lib/htmlToPdf/configuration.rb', line 3 def @default_options end |
#tmp_dir ⇒ Object
Returns the value of attribute tmp_dir.
3 4 5 |
# File 'lib/htmlToPdf/configuration.rb', line 3 def tmp_dir @tmp_dir end |
#wkhtmltopdf_path ⇒ Object
Returns the value of attribute wkhtmltopdf_path.
3 4 5 |
# File 'lib/htmlToPdf/configuration.rb', line 3 def wkhtmltopdf_path @wkhtmltopdf_path end |